use of javax.faces.component.UIOutput in project acs-community-packaging by Alfresco.
the class BaseComponentGenerator method createOutputTextComponent.
/**
* Creates an output text component.
*
* @param context FacesContext
* @param id Optional id to set
* @return The new component
*/
protected UIOutput createOutputTextComponent(FacesContext context, String id) {
UIOutput component = (UIOutput) context.getApplication().createComponent(ComponentConstants.JAVAX_FACES_OUTPUT);
component.setRendererType(ComponentConstants.JAVAX_FACES_TEXT);
FacesHelper.setupComponentId(context, component, id);
return component;
}
Aggregations