public void release() { super.release(); _forceId = null; _forceIdIndex = null; _value = null; _converter = null; _javascriptLocation = null; _imageLocation = null; _styleLocation = null; }
public int doEndTag() throws JspException { try { return super.doEndTag(); } catch (Exception e) { Throwable root = e; while (root.getCause() != null) { root = root.getCause(); } throw new JspException(root); } }
public int doStartTag() throws JspException { try { return super.doStartTag(); } catch (Exception e) { Throwable root = e; while (root.getCause() != null) { root = root.getCause(); } throw new JspException(root); } }
@Override protected UIComponent createComponent(FacesContext context, String newId) throws JspException { UIComponent component; Application application = context.getApplication(); if (_binding != null) { component = application.createComponent(_binding, context, getComponentType()); component.setValueExpression("binding", _binding); } else { component = application.createComponent(getComponentType()); } component.setId(newId); setProperties(component); return component; }
@Override public void setProperties(UIComponent component) { super.setProperties(component); component.setValueExpression("target", target); component.setValueExpression("value", value); }
protected UIComponent createVerbatimComponentFromBodyContent() UIOutput component = (UIOutput)super.createVerbatimComponentFromBodyContent(); FacesContext facesContext = FacesContext.getCurrentInstance(); Object response = facesContext.getExternalContext().getResponse(); component = super.createVerbatimComponent(); if (componentvalue != null)
protected void setProperties(UIComponent component) { if (getRendererType() != null) { component.setRendererType(getRendererType()); } if (_rendered != null) { if (_rendered.isLiteralText()) { boolean b = Boolean.valueOf(_rendered.getExpressionString()).booleanValue(); component.setRendered(b); } else { component.setValueExpression("rendered", _rendered); } } }
@Override public int doStartTag() throws JspException { UIComponentClassicTagBase componentTag = UIComponentELTag.getParentUIComponentClassicTagBase(pageContext); if (componentTag == null) { throw new JspException("no parent UIComponentTag found"); } if (!componentTag.getCreated()) { return Tag.SKIP_BODY; } Validator validator = createValidator(); UIComponent component = componentTag.getComponentInstance(); if (component == null) { throw new JspException("parent UIComponentTag has no UIComponent"); } if (!(component instanceof EditableValueHolder)) { throw new JspException("UIComponent is no EditableValueHolder"); } ((EditableValueHolder)component).addValidator(validator); return Tag.SKIP_BODY; }
@Override protected ELContext getELContext() { FacesContext facesContext = getFacesContext(); ELContext elContext = null; if (facesContext != null) { elContext = facesContext.getELContext(); } return elContext; }
protected UIComponent createComponent(FacesContext context, String newId) throws JspException { UIComponent component; Application application = context.getApplication(); if (_binding != null) { component = application.createComponent(_binding, context, getComponentType()); component.setValueExpression("binding", _binding); } else { component = application.createComponent(getComponentType()); } component.setId(newId); setProperties(component); return component; }
@Override protected void setProperties(UIComponent component) { super.setProperties(component); // set forID if (forID != null) { if (!forID.isLiteralText()) { component.setValueExpression("for", forID); } else { component.getAttributes().put("for", forID.getExpressionString()); } } }
protected UIComponent createVerbatimComponentFromBodyContent() { super.createVerbatimComponentFromBodyContent(); String value = null; value = (String) verbatim.getValue(); verbatim = super.createVerbatimComponent(); if (null != value) { verbatim.setValue(value + new String(chars));
@Override protected void setProperties(UIComponent component) { if (getRendererType() != null) { component.setRendererType(getRendererType()); } if (_rendered != null) { if (_rendered.isLiteralText()) { boolean b = Boolean.valueOf(_rendered.getExpressionString()).booleanValue(); component.setRendered(b); } else { component.setValueExpression("rendered", _rendered); } } }
@Override public int doStartTag() throws JspException { UIComponentClassicTagBase componentTag = UIComponentELTag.getParentUIComponentClassicTagBase(pageContext); if (componentTag == null) { throw new JspException("no parent UIComponentTag found"); } if (!componentTag.getCreated()) { return Tag.SKIP_BODY; } UIComponent component = componentTag.getComponentInstance(); if (component == null) { throw new JspException("parent UIComponentTag has no UIComponent"); } if (!(component instanceof ValueHolder)) { throw new JspException("UIComponent is no ValueHolder"); } Converter converter = createConverter(); ((ValueHolder)component).setConverter(converter); return Tag.SKIP_BODY; }
/** * <p>Return the {@link ELContext} for the {@link FacesContext} for * this request.</p> * * <p>This is a convenience for * <code>getFacesContext().getELContext()</code>.</p> */ @Override protected ELContext getELContext() { FacesContext fc = getFacesContext(); ELContext result = null; if (null != fc) { result = fc.getELContext(); } return result; }
/** * <p>Create and return a new child component of the type returned by * calling <code>getComponentType()</code>. If this {@link UIComponentELTag} * has a non-null <code>binding</code> attribute, this is done by * call {@link Application#createComponent} with the {@link ValueExpression} * created for the <code>binding</code> attribute, and the * {@link ValueExpression} will be stored on the component. Otherwise, * {@link Application#createComponent} is called with only * the component type. Finally, initialize the components id * and other properties. * </p> * @param context {@link FacesContext} for the current request * @param newId id of the component */ protected UIComponent createComponent(FacesContext context, String newId) throws JspException { UIComponent component; Application application = context.getApplication(); if (binding != null) { component = application.createComponent(binding, context, getComponentType()); component.setValueExpression("binding", binding); } else { component = application.createComponent(getComponentType()); } component.setId(newId); setProperties(component); return component; }
protected void setProperties(UIComponent component) { super.setProperties(component); if (null != escape) { component.setValueExpression("escape", escape); } else { component.getAttributes().put("escape", Boolean.FALSE); } if (null != rendered) { component.setValueExpression("rendered", rendered); } component.setTransient(true); }
UIOutput component = (UIOutput) super.createVerbatimComponentFromBodyContent(); FacesContext facesContext = FacesContext.getCurrentInstance(); Object response = facesContext.getExternalContext().getResponse(); component = super.createVerbatimComponent(); if (componentvalue != null)
@Override public void release() { super.release(); _style = null; _styleClass = null; _layout = null; } }
if (getRendererType() != null) { component.setRendererType(getRendererType());