protected void setProperties(UIComponent component) { if (!(component instanceof javax.faces.component.UIColumn)) { throw new IllegalArgumentException("Component "+ component.getClass().getName() +" is no javax.faces.component.UIColumn"); } javax.faces.component.UIColumn comp = (javax.faces.component.UIColumn) component; super.setProperties(component); FacesContext context = getFacesContext(); }
public void release() { super.release(); _style = null; _styleClass = null; } }
public int doAfterBody() throws javax.servlet.jsp.JspException { AjaxWrapper mwrapper = null; try { mwrapper = (AjaxWrapper)getComponentInstance(); } catch (ClassCastException cce) { throw new IllegalStateException("Component type wrong. Expected: AjaxWrapper."); } catch (NullPointerException npx) { throw new IllegalStateException("Component not found. Expected: AjaxWrapper."); } return super.doAfterBody(); } }
public int doEndTag() throws JspException { if (log.isLoggable(Level.WARNING)) { UIComponent component = getComponentInstance(); if (component != null && component.getRendersChildren() && !isBodyContentEmpty()) { log.warning("Component with id '" + component.getClientId(getFacesContext()) + "' (" + getClass().getName() + " tag) and path : "+org.apache.myfaces.shared_impl.renderkit.RendererUtils.getPathToComponent(component)+"renders it's children, but has embedded JSP or HTML code. Use the <f:verbatim> tag for nested HTML. For comments use <%/* */%> style JSP comments instead of <!-- --> style HTML comments." + "\n BodyContent:\n" + getBodyContent().getString().trim()); } } return super.doEndTag(); }
+ "; charset=" + encoding); final int rc = super.doStartTag(); final ResponseWriter writer = context.getResponseWriter(); AssertionUtil.assertNotNull("ResponseWriter", writer);
public int doEndTag() throws JspException { if (log.isWarnEnabled()) { UIComponent component = getComponentInstance(); if (component != null && component.getRendersChildren() && !isBodyContentEmpty()) { log.warn("Component with id '" + component.getClientId(getFacesContext()) + "' (" + getClass().getName() + " tag) and path : "+org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.getPathToComponent(component)+"renders it's children, but has embedded JSP or HTML code. Use the <f:verbatim> tag for nested HTML. For comments use <%/* */%> style JSP comments instead of <!-- --> style HTML comments." + "\n BodyContent:\n" + getBodyContent().getString().trim()); } } return super.doEndTag(); }
/** * @see org.apache.myfaces.taglib.html.HtmlFormTagBase#setProperties(javax.faces.component.UIComponent) */ protected void setProperties(UIComponent component) { super.setProperties(component); UIComponentTagUtils.setStringProperty(getFacesContext(), component, "for", _for); }
public int doEndTag() throws JspException { if (log.isWarnEnabled()) { UIComponent component = getComponentInstance(); if (component != null && component.getRendersChildren() && !isBodyContentEmpty()) { log.warn("Component with id '" + component.getClientId(getFacesContext()) + "' (" + getClass().getName() + " tag) and path : "+org.apache.myfaces.shared_impl.renderkit.RendererUtils.getPathToComponent(component)+"renders it's children, but has embedded JSP or HTML code. Use the <f:verbatim> tag for nested HTML. For comments use <%/* */%> style JSP comments instead of <!-- --> style HTML comments." + "\n BodyContent:\n" + getBodyContent().getString().trim()); } } return super.doEndTag(); }
/** * @see org.apache.myfaces.taglib.html.HtmlFormTagBase#release() */ public void release() { super.release(); _for = null; }
public int doAfterBody() throws javax.servlet.jsp.JspException { AjaxWrapper mwrapper = null; try { mwrapper = (AjaxWrapper)getComponentInstance(); } catch (ClassCastException cce) { throw new IllegalStateException("Component type wrong. Expected: AjaxWrapper."); } catch (NullPointerException npx) { throw new IllegalStateException("Component not found. Expected: AjaxWrapper."); } return super.doAfterBody(); } }
protected void setProperties(final UIComponent component) { super.setProperties(component); final String localeStr = getLocale(); final FacesContext context = FacesContext.getCurrentInstance(); Locale locale = (Locale) ValueBindingUtil.getValue(context, localeStr); if (locale == null && localeStr != null) { locale = LocaleUtil.getLocale(localeStr); } if (locale != null) { ((UIViewRoot) component).setLocale(locale); } Config.set(pageContext.getRequest(), Config.FMT_LOCALE, locale); }
public int doEndTag() throws JspException { if (log.isWarnEnabled()) { UIComponent component = getComponentInstance(); if (component != null && component.getRendersChildren() && !isBodyContentEmpty()) { log.warn("Component with id '" + component.getClientId(getFacesContext()) + "' (" + getClass().getName() + " tag) and path : "+org.apache.myfaces.shared_orchestra.renderkit.RendererUtils.getPathToComponent(component)+"renders it's children, but has embedded JSP or HTML code. Use the <f:verbatim> tag for nested HTML. For comments use <%/* */%> style JSP comments instead of <!-- --> style HTML comments." + "\n BodyContent:\n" + getBodyContent().getString().trim()); } } return super.doEndTag(); }
/** * Releases resources allocated during the execution of this tag handler. */ public void release() { super.release(); }
public int doAfterBody() throws JspException { BodyContent bodyContent = getBodyContent(); if (bodyContent != null) { String value = bodyContent.getString().trim(); if (value != null) { UIOutput component = (UIOutput) getComponentInstance(); component.setValue(value); } } return super.doAfterBody(); }
protected void setProperties(UIComponent component) { super.setProperties(component); setBooleanProperty(component, JSFAttr.FORCE_ID_ATTR, _forceId); setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.FORCE_ID_INDEX_ATTR, _forceIdIndex); //rendererType already handled by UIComponentTag setValueProperty(component, _value); setConverterProperty(component, _converter); }
public int doEndTag() throws JspException { if (log.isLoggable(Level.WARNING)) { UIComponent component = getComponentInstance(); if (component != null && component.getRendersChildren() && !isBodyContentEmpty()) { log.warning("Component with id '" + component.getClientId(getFacesContext()) + "' (" + getClass().getName() + " tag) and path : "+org.apache.myfaces.shared_impl.renderkit.RendererUtils.getPathToComponent(component)+"renders it's children, but has embedded JSP or HTML code. Use the <f:verbatim> tag for nested HTML. For comments use <%/* */%> style JSP comments instead of <!-- --> style HTML comments." + "\n BodyContent:\n" + getBodyContent().getString().trim()); } } return super.doEndTag(); }
public void release() { super.release(); } }
protected void setProperties(UIComponent component) { super.setProperties(component); setBooleanProperty(component, JSFAttr.FORCE_ID_ATTR, _forceId); setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.FORCE_ID_INDEX_ATTR, _forceIdIndex); //rendererType already handled by UIComponentTag setValueProperty(component, _value); setConverterProperty(component, _converter); }
public int doEndTag() throws JspException { final int rc = super.doEndTag(); final FacesContext context = FacesContext.getCurrentInstance(); AssertionUtil.assertNotNull("FacesContext", context); final ResponseWriter writer = context.getResponseWriter(); AssertionUtil.assertNotNull("ResponseWriter", writer); try { writer.endDocument(); } catch (final IOException e) { throw new JspException(e.getMessage(), e); } HttpSession session = null; if ((session = pageContext.getSession()) != null) { session.setAttribute(ViewHandler.CHARACTER_ENCODING_KEY, pageContext.getResponse().getCharacterEncoding()); } return rc; }
/** * Releases resources allocated during the execution of this tag handler. */ public void release() { super.release(); }