protected void setProperties(UIComponent component) { if (!(component instanceof org.apache.myfaces.commons.outputClientId.OutputClientId)) { throw new IllegalArgumentException("Component "+ component.getClass().getName() +" is no org.apache.myfaces.commons.outputClientId.OutputClientId"); } org.apache.myfaces.commons.outputClientId.OutputClientId comp = (org.apache.myfaces.commons.outputClientId.OutputClientId) component; super.setProperties(component); FacesContext context = getFacesContext(); if (_for != null) { comp.setValueExpression("for", _for); } }
@Override public void setProperties(UIComponent component) { super.setProperties(component); component.setValueExpression("target", target); component.setValueExpression("value", value); }
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); }
@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()); } } }
@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()); } } }
@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 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); }
@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()); } } }
@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()); } } }
@Override 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); }
@Override 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); }
protected void setProperties(UIComponent component) { super.setProperties(component); if (null != value) { if (!value.isLiteralText()) { component.setValueExpression("value", value); } else { ((UISelectItems) component).setValue( value.getExpressionString()); } } }
protected void setProperties(UIComponent component) { super.setProperties(component); setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.FORCE_ID_ATTR, _forceId); setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.FORCE_ID_INDEX_ATTR, _forceIdIndex, DEFAULT_FORCE_ID_INDEX_VALUE); //rendererType already handled by UIComponentTag setValueProperty(component, _value); setConverterProperty(component, _converter); }
protected void setProperties(UIComponent component) { super.setProperties(component); setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.FORCE_ID_ATTR, _forceId); setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.FORCE_ID_INDEX_ATTR, _forceIdIndex, DEFAULT_FORCE_ID_INDEX_VALUE); //rendererType already handled by UIComponentTag setValueProperty(component, _value); setConverterProperty(component, _converter); }
protected void setProperties(UIComponent component) { super.setProperties(component); setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.FORCE_ID_ATTR, _forceId); setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.FORCE_ID_INDEX_ATTR, _forceIdIndex, DEFAULT_FORCE_ID_INDEX_VALUE); //rendererType already handled by UIComponentTag setValueProperty(component, _value); setConverterProperty(component, _converter); }
protected void setProperties(UIComponent component) { super.setProperties(component); if ( _value != null ) { if (!_value.isLiteralText()) { component.setValueExpression("value", _value); } else { ((UISelectItems) component).setValue( _value.getExpressionString()); } } }
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); setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.FORCE_ID_ATTR, _forceId); setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.FORCE_ID_INDEX_ATTR, _forceIdIndex, DEFAULT_FORCE_ID_INDEX_VALUE); if (_javascriptLocation != null) setStringProperty(component, JSFAttr.JAVASCRIPT_LOCATION, _javascriptLocation); if (_imageLocation != null) setStringProperty(component, JSFAttr.IMAGE_LOCATION, _imageLocation); if (_styleLocation != null) setStringProperty(component, JSFAttr.STYLE_LOCATION, _styleLocation); //rendererType already handled by UIComponentTag setValueProperty(component, _value); setConverterProperty(component, _converter); }
protected void setProperties(UIComponent component) { super.setProperties(component); setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.FORCE_ID_ATTR, _forceId); setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.FORCE_ID_INDEX_ATTR, _forceIdIndex, DEFAULT_FORCE_ID_INDEX_VALUE); if (_javascriptLocation != null) setStringProperty(component, JSFAttr.JAVASCRIPT_LOCATION, _javascriptLocation); if (_imageLocation != null) setStringProperty(component, JSFAttr.IMAGE_LOCATION, _imageLocation); if (_styleLocation != null) setStringProperty(component, JSFAttr.STYLE_LOCATION, _styleLocation); //rendererType already handled by UIComponentTag setValueProperty(component, _value); setConverterProperty(component, _converter); }
protected void setProperties(UIComponent component) { super.setProperties(component); setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.FORCE_ID_ATTR, _forceId); setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.FORCE_ID_INDEX_ATTR, _forceIdIndex, DEFAULT_FORCE_ID_INDEX_VALUE); if (_javascriptLocation != null) setStringProperty(component, JSFAttr.JAVASCRIPT_LOCATION, _javascriptLocation); if (_imageLocation != null) setStringProperty(component, JSFAttr.IMAGE_LOCATION, _imageLocation); if (_styleLocation != null) setStringProperty(component, JSFAttr.STYLE_LOCATION, _styleLocation); //rendererType already handled by UIComponentTag setValueProperty(component, _value); setConverterProperty(component, _converter); }