Class HtmlRendererUtils
- java.lang.Object
- 
- org.apache.myfaces.renderkit.html.util.HtmlRendererUtils
 
- 
 public final class HtmlRendererUtils extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringCLEAR_HIDDEN_FIELD_FN_NAMEstatic StringHIDDEN_COMMANDLINK_FIELD_NAMEstatic StringNON_SUBMITTED_VALUE_WARNINGstatic StringSUBMIT_FORM_FN_NAME_JSF2
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidappendClearHiddenCommandFormParamsFunctionCall(StringBuilder buf, String formName)static voiddecodeUIInput(FacesContext facesContext, UIComponent component)Utility to set the submitted value of the provided component from the data in the current request object.static voiddecodeUISelectBoolean(FacesContext facesContext, UIComponent component)X-CHECKED: tlddoc h:selectBooleanCheckboxstatic voiddecodeUISelectMany(FacesContext facesContext, UIComponent component)X-CHECKED: tlddoc h:selectManyListboxstatic voiddecodeUISelectOne(FacesContext facesContext, UIComponent component)X-CHECKED: tlddoc h:selectManyListboxstatic ConverterfindUIOutputConverterFailSafe(FacesContext facesContext, UIComponent uiComponent)static ConverterfindUISelectManyConverterFailsafe(FacesContext facesContext, UIComponent uiComponent)static ConverterfindUISelectManyConverterFailsafe(FacesContext facesContext, UIComponent uiComponent, boolean considerValueType)static StringgetHiddenCommandLinkFieldName(UIComponent form, FacesContext facesContext)Get the name of the request parameter that holds the id of the link-type component that caused the form to be submitted.static StringgetOutcomeTargetHref(FacesContext facesContext, UIOutcomeTarget component)static SetgetSubmittedOrSelectedValuesAsSet(boolean selectMany, UIComponent uiComponent, FacesContext facesContext, Converter converter)static List<UIParameter>getValidUIParameterChildren(FacesContext facesContext, List<UIComponent> children, boolean skipNullValue, boolean skipUnrendered)Calls getValidUIParameterChildren(facesContext, children, skipNullValue, skipUnrendered, true);static List<UIParameter>getValidUIParameterChildren(FacesContext facesContext, List<UIComponent> children, boolean skipNullValue, boolean skipUnrendered, boolean skipNullName)Returns a List of all valid UIParameter children from the given children.static booleanisDisabled(UIComponent component)static booleanisDisabledOrReadOnly(UIComponent component)static booleanisHideNoSelectionOption(UIComponent component)Returns the value of the hideNoSelectionOption attribute of the given UIComponentstatic booleanisOutputHtml5Doctype(FacesContext context)Returnstrueif the view root associated with the given faces context will be rendered with a HTML5 doctype.static booleanisPartialOrBehaviorSubmit(FacesContext facesContext, String clientId)static booleanisReadOnly(UIComponent component)static Map<String,String>mapAttachedParamsToStringValues(FacesContext facesContext, UIComponent uiComponent)static booleanrenderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String sourceId, String eventName, Collection<ClientBehaviorContext.Parameter> eventParameters, String eventName2, Collection<ClientBehaviorContext.Parameter> eventParameters2, Map<String,List<ClientBehavior>> clientBehaviors, String htmlAttrName, String attributeValue, String serverSideScript)static booleanrenderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String sourceId, String eventName, Collection<ClientBehaviorContext.Parameter> eventParameters, Map<String,List<ClientBehavior>> clientBehaviors, String htmlAttrName, String attributeValue)static booleanrenderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String sourceId, String eventName, Collection<ClientBehaviorContext.Parameter> eventParameters, Map<String,List<ClientBehavior>> clientBehaviors, String htmlAttrName, String attributeValue, String serverSideScript)static booleanrenderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String sourceId, String eventName, Map<String,List<ClientBehavior>> clientBehaviors)static booleanrenderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String sourceId, String eventName, Map<String,List<ClientBehavior>> clientBehaviors, String htmlAttrName)static booleanrenderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String eventName, Collection<ClientBehaviorContext.Parameter> eventParameters, String eventName2, Collection<ClientBehaviorContext.Parameter> eventParameters2, Map<String,List<ClientBehavior>> clientBehaviors, String htmlAttrName, String attributeValue, String serverSideScript)static booleanrenderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String eventName, Collection<ClientBehaviorContext.Parameter> eventParameters, Map<String,List<ClientBehavior>> clientBehaviors, String htmlAttrName, String attributeValue)Render an attribute taking into account the passed event, the component property and the passed attribute value for the component property.static booleanrenderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String eventName, Collection<ClientBehaviorContext.Parameter> eventParameters, Map<String,List<ClientBehavior>> clientBehaviors, String htmlAttrName, String attributeValue, String serverSideScript)Render an attribute taking into account the passed event, the passed attribute value for the component property.static booleanrenderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String eventName, Map<String,List<ClientBehavior>> clientBehaviors)Render an attribute taking into account the passed event and the component property.static booleanrenderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String eventName, Map<String,List<ClientBehavior>> clientBehaviors, String htmlAttrName)Render an attribute taking into account the passed event and the component property.static voidrenderBehaviorizedEventHandlers(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, String sourceId, Map<String,List<ClientBehavior>> clientBehaviors)static voidrenderBehaviorizedEventHandlers(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors)static voidrenderBehaviorizedEventHandlersWithoutOnclick(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors)static voidrenderBehaviorizedEventHandlersWithoutOnmouseoverAndOnmouseout(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors)static voidrenderBehaviorizedFieldEventHandlers(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors)static voidrenderBehaviorizedFieldEventHandlersWithoutOnchange(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, String sourceId, Map<String,List<ClientBehavior>> clientBehaviors)static voidrenderBehaviorizedFieldEventHandlersWithoutOnchange(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors)static voidrenderBehaviorizedFieldEventHandlersWithoutOnchangeAndOnselect(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors)static voidrenderBehaviorizedFieldEventHandlersWithoutOnfocus(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors)static booleanrenderBehaviorizedOnchangeEventHandler(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, String sourceId, Map<String,List<ClientBehavior>> clientBehaviors)static booleanrenderBehaviorizedOnchangeEventHandler(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors)static voidrenderDisplayValueOnly(FacesContext facesContext, UIInput input)static voidrenderDisplayValueOnlyForSelects(FacesContext facesContext, UIComponent uiComponent)static voidrenderDisplayValueOnlyForSelects(FacesContext facesContext, UIComponent uiComponent, boolean considerValueType)static voidrenderFormSubmitScript(FacesContext facesContext)static voidrenderHiddenCommandFormParams(ResponseWriter writer, Set dummyFormParams)static voidrenderHiddenInputField(ResponseWriter writer, Object name, Object value)static booleanrenderHTMLAttribute(ResponseWriter writer, UIComponent component, String componentProperty, String htmlAttrName)static booleanrenderHTMLAttribute(ResponseWriter writer, String componentProperty, String attrName, Object value)static booleanrenderHTMLAttributes(ResponseWriter writer, UIComponent component, String[] attributes)static booleanrenderHTMLAttributesWithOptionalStartElement(ResponseWriter writer, UIComponent component, String elementName, String[] attributes)static booleanrenderHTMLAttributeWithOptionalStartElement(ResponseWriter writer, UIComponent component, String elementName, String attrName, Object value, boolean startElementWritten)static booleanrenderHTMLStringAttribute(ResponseWriter writer, UIComponent component, String componentProperty, String htmlAttrName)Renders a html string type attribute.static booleanrenderHTMLStringAttribute(ResponseWriter writer, String componentProperty, String htmlAttrName, String value)Renders a html string type attribute.static booleanrenderHTMLStringNoStyleAttributes(ResponseWriter writer, UIComponent component, String[] attributes)static booleanrenderHTMLStringPreserveEmptyAttribute(ResponseWriter writer, UIComponent component, String componentProperty, String htmlAttrName)Renders a html string type attribute.static booleanrenderHTMLStringPreserveEmptyAttribute(ResponseWriter writer, String componentProperty, String htmlAttrName, String value)Renders a html string type attribute.static voidrenderLabel(ResponseWriter writer, UIComponent component, String forClientId, SelectItem item, boolean disabled)Renders a label HTML elementstatic voidrenderLabel(ResponseWriter writer, UIComponent component, String forClientId, SelectItem item, boolean disabled, boolean selected)Renders a label HTML elementstatic booleanrenderOptionalEndElement(ResponseWriter writer, UIComponent component, String elementName, String[] attributes)static voidrenderScriptType(FacesContext context, ResponseWriter writer)If HTML5 doctype do not render the "type='text/javascript`" attribute as its not necessary.static voidrenderTableCaption(FacesContext context, ResponseWriter writer, UIComponent component)static voidrenderUnhandledFacesMessages(FacesContext facesContext)Renders all FacesMessages which have not been rendered yet with the help of a HtmlMessages component.static voidwriteId(ResponseWriter writer, UIComponent component, FacesContext facesContext)static voidwriteIdAndName(ResponseWriter writer, UIComponent component, FacesContext facesContext)static voidwriteIdAndNameIfNecessary(ResponseWriter writer, UIComponent component, FacesContext facesContext)static voidwriteIdIfNecessary(ResponseWriter writer, UIComponent component, FacesContext facesContext)
 
- 
- 
- 
Field Detail- 
HIDDEN_COMMANDLINK_FIELD_NAMEpublic static final String HIDDEN_COMMANDLINK_FIELD_NAME - See Also:
- Constant Field Values
 
 - 
CLEAR_HIDDEN_FIELD_FN_NAMEpublic static final String CLEAR_HIDDEN_FIELD_FN_NAME - See Also:
- Constant Field Values
 
 - 
SUBMIT_FORM_FN_NAME_JSF2public static final String SUBMIT_FORM_FN_NAME_JSF2 - See Also:
- Constant Field Values
 
 - 
NON_SUBMITTED_VALUE_WARNINGpublic static final String NON_SUBMITTED_VALUE_WARNING - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
decodeUIInputpublic static void decodeUIInput(FacesContext facesContext, UIComponent component) Utility to set the submitted value of the provided component from the data in the current request object.Param component is required to be an EditableValueHolder. On return from this method, the component's submittedValue property will be set if the submitted form contained that component. 
 - 
decodeUISelectBooleanpublic static void decodeUISelectBoolean(FacesContext facesContext, UIComponent component) X-CHECKED: tlddoc h:selectBooleanCheckbox- Parameters:
- facesContext-
- component-
 
 - 
isDisabledOrReadOnlypublic static boolean isDisabledOrReadOnly(UIComponent component) 
 - 
isDisabledpublic static boolean isDisabled(UIComponent component) 
 - 
isReadOnlypublic static boolean isReadOnly(UIComponent component) 
 - 
decodeUISelectManypublic static void decodeUISelectMany(FacesContext facesContext, UIComponent component) X-CHECKED: tlddoc h:selectManyListbox- Parameters:
- facesContext-
- component-
 
 - 
decodeUISelectOnepublic static void decodeUISelectOne(FacesContext facesContext, UIComponent component) X-CHECKED: tlddoc h:selectManyListbox- Parameters:
- facesContext-
- component-
 
 - 
getSubmittedOrSelectedValuesAsSetpublic static Set getSubmittedOrSelectedValuesAsSet(boolean selectMany, UIComponent uiComponent, FacesContext facesContext, Converter converter) 
 - 
findUISelectManyConverterFailsafepublic static Converter findUISelectManyConverterFailsafe(FacesContext facesContext, UIComponent uiComponent) 
 - 
findUISelectManyConverterFailsafepublic static Converter findUISelectManyConverterFailsafe(FacesContext facesContext, UIComponent uiComponent, boolean considerValueType) 
 - 
findUIOutputConverterFailSafepublic static Converter findUIOutputConverterFailSafe(FacesContext facesContext, UIComponent uiComponent) 
 - 
renderHTMLAttributepublic static boolean renderHTMLAttribute(ResponseWriter writer, String componentProperty, String attrName, Object value) throws IOException - Returns:
- true, if the attribute was written
- Throws:
- IOException
 
 - 
renderHTMLAttributepublic static boolean renderHTMLAttribute(ResponseWriter writer, UIComponent component, String componentProperty, String htmlAttrName) throws IOException - Returns:
- true, if the attribute was written
- Throws:
- IOException
 
 - 
renderHTMLAttributespublic static boolean renderHTMLAttributes(ResponseWriter writer, UIComponent component, String[] attributes) throws IOException - Returns:
- true, if an attribute was written
- Throws:
- IOException
 
 - 
renderHTMLAttributeWithOptionalStartElementpublic static boolean renderHTMLAttributeWithOptionalStartElement(ResponseWriter writer, UIComponent component, String elementName, String attrName, Object value, boolean startElementWritten) throws IOException - Throws:
- IOException
 
 - 
renderHTMLAttributesWithOptionalStartElementpublic static boolean renderHTMLAttributesWithOptionalStartElement(ResponseWriter writer, UIComponent component, String elementName, String[] attributes) throws IOException - Throws:
- IOException
 
 - 
renderOptionalEndElementpublic static boolean renderOptionalEndElement(ResponseWriter writer, UIComponent component, String elementName, String[] attributes) throws IOException - Throws:
- IOException
 
 - 
writeIdpublic static void writeId(ResponseWriter writer, UIComponent component, FacesContext facesContext) throws IOException - Throws:
- IOException
 
 - 
writeIdIfNecessarypublic static void writeIdIfNecessary(ResponseWriter writer, UIComponent component, FacesContext facesContext) throws IOException - Throws:
- IOException
 
 - 
writeIdAndNameIfNecessarypublic static void writeIdAndNameIfNecessary(ResponseWriter writer, UIComponent component, FacesContext facesContext) throws IOException - Throws:
- IOException
 
 - 
renderHTMLStringPreserveEmptyAttributepublic static final boolean renderHTMLStringPreserveEmptyAttribute(ResponseWriter writer, UIComponent component, String componentProperty, String htmlAttrName) throws IOException Renders a html string type attribute. If the value retrieved from the component property is "", the attribute is rendered.- Parameters:
- writer-
- component-
- componentProperty-
- htmlAttrName-
- Returns:
- Throws:
- IOException
 
 - 
renderHTMLStringPreserveEmptyAttributepublic static boolean renderHTMLStringPreserveEmptyAttribute(ResponseWriter writer, String componentProperty, String htmlAttrName, String value) throws IOException Renders a html string type attribute. If the value retrieved from the component property is "", the attribute is rendered.- Parameters:
- writer-
- componentProperty-
- htmlAttrName-
- Returns:
- Throws:
- IOException
 
 - 
renderHTMLStringAttributepublic static boolean renderHTMLStringAttribute(ResponseWriter writer, UIComponent component, String componentProperty, String htmlAttrName) throws IOException Renders a html string type attribute. If the value retrieved from the component property is "" or null, the attribute is not rendered.- Parameters:
- writer-
- component-
- componentProperty-
- htmlAttrName-
- Returns:
- Throws:
- IOException
 
 - 
renderHTMLStringAttributepublic static boolean renderHTMLStringAttribute(ResponseWriter writer, String componentProperty, String htmlAttrName, String value) throws IOException Renders a html string type attribute. If the value retrieved from the component property is "" or null, the attribute is not rendered.- Parameters:
- writer-
- componentProperty-
- htmlAttrName-
- value-
- Returns:
- Throws:
- IOException
 
 - 
renderHTMLStringNoStyleAttributespublic static boolean renderHTMLStringNoStyleAttributes(ResponseWriter writer, UIComponent component, String[] attributes) throws IOException - Throws:
- IOException
 
 - 
writeIdAndNamepublic static void writeIdAndName(ResponseWriter writer, UIComponent component, FacesContext facesContext) throws IOException - Throws:
- IOException
 
 - 
renderDisplayValueOnlyForSelectspublic static void renderDisplayValueOnlyForSelects(FacesContext facesContext, UIComponent uiComponent) throws IOException - Throws:
- IOException
 
 - 
renderDisplayValueOnlyForSelectspublic static void renderDisplayValueOnlyForSelects(FacesContext facesContext, UIComponent uiComponent, boolean considerValueType) throws IOException - Throws:
- IOException
 
 - 
renderTableCaptionpublic static void renderTableCaption(FacesContext context, ResponseWriter writer, UIComponent component) throws IOException - Throws:
- IOException
 
 - 
renderDisplayValueOnlypublic static void renderDisplayValueOnly(FacesContext facesContext, UIInput input) throws IOException - Throws:
- IOException
 
 - 
appendClearHiddenCommandFormParamsFunctionCallpublic static void appendClearHiddenCommandFormParamsFunctionCall(StringBuilder buf, String formName) 
 - 
renderFormSubmitScriptpublic static void renderFormSubmitScript(FacesContext facesContext) throws IOException - Throws:
- IOException
 
 - 
renderHiddenCommandFormParamspublic static void renderHiddenCommandFormParams(ResponseWriter writer, Set dummyFormParams) throws IOException - Throws:
- IOException
 
 - 
renderHiddenInputFieldpublic static void renderHiddenInputField(ResponseWriter writer, Object name, Object value) throws IOException - Throws:
- IOException
 
 - 
renderLabelpublic static void renderLabel(ResponseWriter writer, UIComponent component, String forClientId, SelectItem item, boolean disabled) throws IOException Renders a label HTML element- Throws:
- IOException
 
 - 
renderLabelpublic static void renderLabel(ResponseWriter writer, UIComponent component, String forClientId, SelectItem item, boolean disabled, boolean selected) throws IOException Renders a label HTML element- Throws:
- IOException
 
 - 
getHiddenCommandLinkFieldNamepublic static String getHiddenCommandLinkFieldName(UIComponent form, FacesContext facesContext) Get the name of the request parameter that holds the id of the link-type component that caused the form to be submitted.Within each page there may be multiple "link" type components that cause page submission. On the server it is necessary to know which of these actually caused the submit, in order to invoke the correct listeners. Such components therefore store their id into the "hidden command link field" in their associated form before submitting it. The field is always a direct child of each form, and has the same name in each form. The id of the form component is therefore both necessary and sufficient to determine the full name of the field. 
 - 
isPartialOrBehaviorSubmitpublic static boolean isPartialOrBehaviorSubmit(FacesContext facesContext, String clientId) 
 - 
getOutcomeTargetHrefpublic static String getOutcomeTargetHref(FacesContext facesContext, UIOutcomeTarget component) throws IOException - Throws:
- IOException
 
 - 
mapAttachedParamsToStringValuespublic static Map<String,String> mapAttachedParamsToStringValues(FacesContext facesContext, UIComponent uiComponent) 
 - 
getValidUIParameterChildrenpublic static List<UIParameter> getValidUIParameterChildren(FacesContext facesContext, List<UIComponent> children, boolean skipNullValue, boolean skipUnrendered) Calls getValidUIParameterChildren(facesContext, children, skipNullValue, skipUnrendered, true);- Parameters:
- facesContext-
- children-
- skipNullValue-
- skipUnrendered-
- Returns:
- ArrayList size > 0 if any parameter found
 
 - 
getValidUIParameterChildrenpublic static List<UIParameter> getValidUIParameterChildren(FacesContext facesContext, List<UIComponent> children, boolean skipNullValue, boolean skipUnrendered, boolean skipNullName) Returns a List of all valid UIParameter children from the given children. Valid means that the UIParameter is not disabled, its name is not null (if skipNullName is true), its value is not null (if skipNullValue is true) and it is rendered (if skipUnrendered is true). This method also creates a warning for every UIParameter with a null-name (again, if skipNullName is true) and, if ProjectStage is Development and skipNullValue is true, it informs the user about every null-value.- Parameters:
- facesContext-
- children-
- skipNullValue- should UIParameters with a null value be skipped
- skipUnrendered- should UIParameters with isRendered() returning false be skipped
- skipNullName- should UIParameters with a null name be skipped (normally true, but in the case of h:outputFormat false)
- Returns:
- ArrayList size > 0 if any parameter found
 
 - 
renderBehaviorizedAttributepublic static boolean renderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String eventName, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException Render an attribute taking into account the passed event and the component property. It will be rendered as "componentProperty" attribute.- Parameters:
- facesContext-
- writer-
- componentProperty-
- component-
- eventName-
- clientBehaviors-
- Returns:
- Throws:
- IOException
 
 - 
renderBehaviorizedAttributepublic static boolean renderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String sourceId, String eventName, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException - Throws:
- IOException
 
 - 
renderBehaviorizedAttributepublic static boolean renderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String eventName, Map<String,List<ClientBehavior>> clientBehaviors, String htmlAttrName) throws IOException Render an attribute taking into account the passed event and the component property. The event will be rendered on the selected htmlAttrName- Parameters:
- facesContext-
- writer-
- component-
- clientBehaviors-
- eventName-
- componentProperty-
- htmlAttrName-
- Returns:
- Throws:
- IOException
 
 - 
renderBehaviorizedAttributepublic static boolean renderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String sourceId, String eventName, Map<String,List<ClientBehavior>> clientBehaviors, String htmlAttrName) throws IOException - Throws:
- IOException
 
 - 
renderBehaviorizedAttributepublic static boolean renderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String eventName, Collection<ClientBehaviorContext.Parameter> eventParameters, Map<String,List<ClientBehavior>> clientBehaviors, String htmlAttrName, String attributeValue) throws IOException Render an attribute taking into account the passed event, the component property and the passed attribute value for the component property. The event will be rendered on the selected htmlAttrName.- Parameters:
- facesContext-
- writer-
- componentProperty-
- component-
- eventName-
- clientBehaviors-
- htmlAttrName-
- attributeValue-
- Returns:
- Throws:
- IOException
 
 - 
renderBehaviorizedAttributepublic static boolean renderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String sourceId, String eventName, Collection<ClientBehaviorContext.Parameter> eventParameters, Map<String,List<ClientBehavior>> clientBehaviors, String htmlAttrName, String attributeValue) throws IOException - Throws:
- IOException
 
 - 
renderBehaviorizedAttributepublic static boolean renderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String eventName, Collection<ClientBehaviorContext.Parameter> eventParameters, Map<String,List<ClientBehavior>> clientBehaviors, String htmlAttrName, String attributeValue, String serverSideScript) throws IOException Render an attribute taking into account the passed event, the passed attribute value for the component property. and the specific server code. The event will be rendered on the selected htmlAttrName.- Parameters:
- facesContext-
- writer-
- componentProperty-
- component-
- eventName-
- clientBehaviors-
- htmlAttrName-
- attributeValue-
- serverSideScript-
- Returns:
- Throws:
- IOException
 
 - 
renderBehaviorizedAttributepublic static boolean renderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String sourceId, String eventName, Collection<ClientBehaviorContext.Parameter> eventParameters, Map<String,List<ClientBehavior>> clientBehaviors, String htmlAttrName, String attributeValue, String serverSideScript) throws IOException - Throws:
- IOException
 
 - 
renderBehaviorizedAttributepublic static boolean renderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String eventName, Collection<ClientBehaviorContext.Parameter> eventParameters, String eventName2, Collection<ClientBehaviorContext.Parameter> eventParameters2, Map<String,List<ClientBehavior>> clientBehaviors, String htmlAttrName, String attributeValue, String serverSideScript) throws IOException - Throws:
- IOException
 
 - 
renderBehaviorizedAttributepublic static boolean renderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String sourceId, String eventName, Collection<ClientBehaviorContext.Parameter> eventParameters, String eventName2, Collection<ClientBehaviorContext.Parameter> eventParameters2, Map<String,List<ClientBehavior>> clientBehaviors, String htmlAttrName, String attributeValue, String serverSideScript) throws IOException - Throws:
- IOException
 
 - 
renderBehaviorizedEventHandlerspublic static void renderBehaviorizedEventHandlers(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException - Throws:
- IOException
 
 - 
renderBehaviorizedEventHandlerspublic static void renderBehaviorizedEventHandlers(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, String sourceId, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException - Throws:
- IOException
 
 - 
renderBehaviorizedEventHandlersWithoutOnclickpublic static void renderBehaviorizedEventHandlersWithoutOnclick(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException - Throws:
- IOException
 
 - 
renderBehaviorizedEventHandlersWithoutOnmouseoverAndOnmouseoutpublic static void renderBehaviorizedEventHandlersWithoutOnmouseoverAndOnmouseout(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException - Throws:
- IOException
 
 - 
renderBehaviorizedFieldEventHandlerspublic static void renderBehaviorizedFieldEventHandlers(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException - Throws:
- IOException
 
 - 
renderBehaviorizedFieldEventHandlersWithoutOnfocuspublic static void renderBehaviorizedFieldEventHandlersWithoutOnfocus(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException - Throws:
- IOException
 
 - 
renderBehaviorizedFieldEventHandlersWithoutOnchangepublic static void renderBehaviorizedFieldEventHandlersWithoutOnchange(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException - Throws:
- IOException
 
 - 
renderBehaviorizedFieldEventHandlersWithoutOnchangepublic static void renderBehaviorizedFieldEventHandlersWithoutOnchange(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, String sourceId, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException - Throws:
- IOException
 
 - 
renderBehaviorizedFieldEventHandlersWithoutOnchangeAndOnselectpublic static void renderBehaviorizedFieldEventHandlersWithoutOnchangeAndOnselect(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException - Throws:
- IOException
 
 - 
renderBehaviorizedOnchangeEventHandlerpublic static boolean renderBehaviorizedOnchangeEventHandler(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException - Throws:
- IOException
 
 - 
renderBehaviorizedOnchangeEventHandlerpublic static boolean renderBehaviorizedOnchangeEventHandler(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, String sourceId, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException - Throws:
- IOException
 
 - 
isHideNoSelectionOptionpublic static boolean isHideNoSelectionOption(UIComponent component) Returns the value of the hideNoSelectionOption attribute of the given UIComponent- Parameters:
- component-
- Returns:
 
 - 
renderUnhandledFacesMessagespublic static void renderUnhandledFacesMessages(FacesContext facesContext) throws IOException Renders all FacesMessages which have not been rendered yet with the help of a HtmlMessages component.- Parameters:
- facesContext-
- Throws:
- IOException
 
 - 
isOutputHtml5Doctypepublic static boolean isOutputHtml5Doctype(FacesContext context) Returnstrueif the view root associated with the given faces context will be rendered with a HTML5 doctype.- Parameters:
- context- Involved faces context.
- Returns:
- trueif the view root associated with the given faces context will be rendered with a HTML5 doctype.
 
 - 
renderScriptTypepublic static void renderScriptType(FacesContext context, ResponseWriter writer) throws IOException If HTML5 doctype do not render the "type='text/javascript`" attribute as its not necessary.- Parameters:
- context- Involved faces context.
- writer- Involved response writer.
- Throws:
- IOException- if any error occurs writing the response.
 
 
- 
 
-