protected UIComponent createComponent(final FacesContext context, final String newId) { final UIComponent component = WebAppUtil.createComponent(context, binding, getComponentType()); component.setId(newId); setProperties(component); return component; }
/** * <p>Implement <code>createComponent</code> using Faces 1.1 EL * API.</p> * * @param context {@inheritDoc} * @param newId {@inheritDoc} */ @Override protected UIComponent createComponent(FacesContext context, String newId) { UIComponent component; Application application = context.getApplication(); if (binding != null) { ValueBinding vb = application.createValueBinding(binding); component = application.createComponent(vb, context, getComponentType()); component.setValueBinding("binding", vb); } else { component = application.createComponent(getComponentType()); } component.setId(newId); setProperties(component); return component; }
/** * <p>Implement <code>createComponent</code> using Faces 1.1 EL * API.</p> * * @param context {@inheritDoc} * @param newId {@inheritDoc} */ protected UIComponent createComponent(FacesContext context, String newId) { UIComponent component; Application application = context.getApplication(); if (binding != null) { ValueBinding vb = application.createValueBinding(binding); component = application.createComponent(vb, context, getComponentType()); component.setValueBinding("binding", vb); } else { component = application.createComponent(getComponentType()); } component.setId(newId); setProperties(component); return component; }
/** * <p>Implement <code>createComponent</code> using Faces 1.1 EL * API.</p> * * @param context {@inheritDoc} * @param newId {@inheritDoc} */ protected UIComponent createComponent(FacesContext context, String newId) { UIComponent component; Application application = context.getApplication(); if (binding != null) { ValueBinding vb = application.createValueBinding(binding); component = application.createComponent(vb, context, getComponentType()); component.setValueBinding("binding", vb); } else { component = application.createComponent(getComponentType()); } component.setId(newId); setProperties(component); return component; }
/** * <p>Implement <code>createComponent</code> using Faces 1.1 EL * API.</p> * * @param context {@inheritDoc} * @param newId {@inheritDoc} */ @Override protected UIComponent createComponent(FacesContext context, String newId) { UIComponent component; Application application = context.getApplication(); if (binding != null) { ValueBinding vb = application.createValueBinding(binding); component = application.createComponent(vb, context, getComponentType()); component.setValueBinding("binding", vb); } else { component = application.createComponent(getComponentType()); } component.setId(newId); setProperties(component); return component; }
/** * <p>Implement <code>createComponent</code> using Faces 1.1 EL * API.</p> * * @param context {@inheritDoc} * @param newId {@inheritDoc} */ protected UIComponent createComponent(FacesContext context, String newId) { UIComponent component; Application application = context.getApplication(); if (binding != null) { ValueBinding vb = application.createValueBinding(binding); component = application.createComponent(vb, context, getComponentType()); component.setValueBinding("binding", vb); } else { component = application.createComponent(getComponentType()); } component.setId(newId); setProperties(component); return component; }
/** * <p>Implement <code>createComponent</code> using Faces 1.1 EL * API.</p> * * @param context {@inheritDoc} * @param newId {@inheritDoc} */ @Override protected UIComponent createComponent(FacesContext context, String newId) { UIComponent component; Application application = context.getApplication(); if (binding != null) { ValueBinding vb = application.createValueBinding(binding); component = application.createComponent(vb, context, getComponentType()); component.setValueBinding("binding", vb); } else { component = application.createComponent(getComponentType()); } component.setId(newId); setProperties(component); return component; }
/** * <p>Implement <code>createComponent</code> using Faces 1.1 EL * API.</p> * * @param context {@inheritDoc} * @param newId {@inheritDoc} */ @Override protected UIComponent createComponent(FacesContext context, String newId) { UIComponent component; Application application = context.getApplication(); if (binding != null) { ValueBinding vb = application.createValueBinding(binding); component = application.createComponent(vb, context, getComponentType()); component.setValueBinding("binding", vb); } else { component = application.createComponent(getComponentType()); } component.setId(newId); setProperties(component); return component; }
/** * <p>Implement <code>createComponent</code> using Faces 1.1 EL * API.</p> * * @param context {@inheritDoc} * @param newId {@inheritDoc} */ @Override protected UIComponent createComponent(FacesContext context, String newId) { UIComponent component; Application application = context.getApplication(); if (binding != null) { ValueBinding vb = application.createValueBinding(binding); component = application.createComponent(vb, context, getComponentType()); component.setValueBinding("binding", vb); } else { component = application.createComponent(getComponentType()); } component.setId(newId); setProperties(component); return component; }
/** * Create a UIComponent. Abstract method getComponentType is invoked to determine the actual type name for the * component to be created. * * If this tag has a "binding" attribute, then that is immediately evaluated to store the created component in the * specified property. */ @Override protected UIComponent createComponent(FacesContext context, String id) { String componentType = getComponentType(); if (componentType == null) { throw new NullPointerException("componentType"); } if (_binding != null) { Application application = context.getApplication(); ValueBinding componentBinding = application.createValueBinding(_binding); UIComponent component = application.createComponent(componentBinding, context, componentType); component.setId(id); component.setValueBinding("binding", componentBinding); setProperties(component); return component; } UIComponent component = context.getApplication().createComponent(componentType); component.setId(id); setProperties(component); return component; }
String componentType = getComponentType(); if (componentType == null)