org.apache.myfaces.shared.renderkit.html
Class HtmlRendererUtils

java.lang.Object
  extended by org.apache.myfaces.shared.renderkit.html.HtmlRendererUtils

public final class HtmlRendererUtils
extends java.lang.Object

Version:
$Revision: 1082970 $ $Date: 2011-03-18 11:58:17 -0500 (Fri, 18 Mar 2011) $
Author:
Manfred Geiler (latest modification by $Author: lu4242 $)

Nested Class Summary
static class HtmlRendererUtils.LinkParameter
           
static class HtmlRendererUtils.ScriptContext
          The ScriptContext offers methods and fields to help with rendering out a script and keeping a proper formatting.
 
Field Summary
static java.lang.String ALLOW_CDATA_SECTION_ON
           
static java.lang.String CLEAR_HIDDEN_FIELD_FN_NAME
           
static java.lang.String DEFAULT_CHAR_ENCODING
           
static java.lang.String HIDDEN_COMMANDLINK_FIELD_NAME
           
static java.lang.String HIDDEN_COMMANDLINK_FIELD_NAME_MYFACES_OLD
           
static java.lang.String HIDDEN_COMMANDLINK_FIELD_NAME_TRINIDAD
           
static java.lang.String NON_SUBMITTED_VALUE_WARNING
           
static java.lang.String SUBMIT_FORM_FN_NAME
           
static java.lang.String SUBMIT_FORM_FN_NAME_JSF2
           
 
Method Summary
static void allowCdataSection(javax.faces.context.FacesContext fc, boolean cdataSectionAllowed)
           
static void appendAutoScrollAssignment(javax.faces.context.FacesContext context, java.lang.StringBuffer onClickValue, java.lang.String formName)
          Adds the hidden form input value assignment that is necessary for the autoscroll feature to an html link or button onclick attribute.
static void appendAutoScrollAssignment(java.lang.StringBuffer onClickValue, java.lang.String formName)
          Adds the hidden form input value assignment that is necessary for the autoscroll feature to an html link or button onclick attribute.
static void appendClearHiddenCommandFormParamsFunctionCall(java.lang.StringBuffer buf, java.lang.String formName)
           
static java.lang.String buildBehaviorChain(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.lang.String eventName, java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> params, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors, java.lang.String userEventCode, java.lang.String serverEventCode)
           
static java.lang.String buildBehaviorChain(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.lang.String eventName1, java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> params, java.lang.String eventName2, java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> params2, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors, java.lang.String userEventCode, java.lang.String serverEventCode)
           
static java.lang.String buildBehaviorChain(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.lang.String targetClientId, java.lang.String eventName, java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> params, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors, java.lang.String userEventCode, java.lang.String serverEventCode)
           
static java.lang.String buildBehaviorChain(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.lang.String targetClientId, java.lang.String eventName1, java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> params, java.lang.String eventName2, java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> params2, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors, java.lang.String userEventCode, java.lang.String serverEventCode)
           
static void decodeClientBehaviors(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
static void decodeUIInput(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
          Utility to set the submitted value of the provided component from the data in the current request object.
static void decodeUISelectBoolean(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
          X-CHECKED: tlddoc h:selectBooleanCheckbox
static void decodeUISelectMany(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
          X-CHECKED: tlddoc h:selectManyListbox
static void decodeUISelectOne(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
          X-CHECKED: tlddoc h:selectManyListbox
static java.lang.String escapeJavaScriptForChain(java.lang.String javaScript)
          This function correctly escapes the given JavaScript code for the use in the jsf.util.chain() JavaScript function.
static javax.faces.convert.Converter findUIOutputConverterFailSafe(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
static javax.faces.convert.Converter findUISelectManyConverterFailsafe(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
static javax.faces.convert.Converter findUISelectManyConverterFailsafe(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, boolean considerValueType)
           
static java.lang.String getAutoScrollFunction(javax.faces.context.FacesContext facesContext)
           
static java.lang.String getClearHiddenCommandFormParamsFunctionName(java.lang.String formName)
          Prefixes the given String with "clear_" and removes special characters
static java.lang.String getClearHiddenCommandFormParamsFunctionNameMyfacesLegacy(java.lang.String formName)
           
static java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> getClientBehaviorContextParameters(java.util.Map<java.lang.String,java.lang.String> params)
           
static java.lang.String getDisplayValueOnlyStyle(javax.faces.component.UIComponent component)
           
static java.lang.String getDisplayValueOnlyStyleClass(javax.faces.component.UIComponent component)
           
static java.lang.String getHiddenCommandLinkFieldName(FormInfo formInfo)
          Get the name of the request parameter that holds the id of the link-type component that caused the form to be submitted.
static java.lang.String getHiddenCommandLinkFieldNameMyfacesOld(FormInfo formInfo)
          Deprecated. Use getHiddenCommandLinkFieldNameMyfaces(FormInfo) instead
static java.lang.String getImageLocation(javax.faces.component.UIComponent component)
           
static java.lang.String getJavascriptLocation(javax.faces.component.UIComponent component)
           
static java.lang.String getOutcomeTargetHref(javax.faces.context.FacesContext facesContext, javax.faces.component.UIOutcomeTarget component)
           
static java.lang.String getStyleLocation(javax.faces.component.UIComponent component)
           
static java.util.Set getSubmittedOrSelectedValuesAsSet(boolean selectMany, javax.faces.component.UIComponent uiComponent, javax.faces.context.FacesContext facesContext, javax.faces.convert.Converter converter)
           
static java.lang.String[] getSupportedContentTypes()
           
static java.util.List<javax.faces.component.UIParameter> getValidUIParameterChildren(javax.faces.context.FacesContext facesContext, java.util.List<javax.faces.component.UIComponent> children, boolean skipNullValue, boolean skipUnrendered)
          Calls getValidUIParameterChildren(facesContext, children, skipNullValue, skipUnrendered, true);
static java.util.List<javax.faces.component.UIParameter> getValidUIParameterChildren(javax.faces.context.FacesContext facesContext, java.util.List<javax.faces.component.UIComponent> children, boolean skipNullValue, boolean skipUnrendered, boolean skipNullName)
          Returns a List of all valid UIParameter children from the given children.
static boolean hasClientBehavior(java.lang.String eventName, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> behaviors, javax.faces.context.FacesContext facesContext)
          Checks if the given component has a behavior attachment with a given name.
static boolean isAllowedCdataSection(javax.faces.context.FacesContext fc)
           
static boolean isDisabled(javax.faces.component.UIComponent component)
           
static boolean isDisabledOrReadOnly(javax.faces.component.UIComponent component)
           
static boolean isDisplayValueOnly(javax.faces.component.UIComponent component)
           
static boolean isHideNoSelectionOption(javax.faces.component.UIComponent component)
          Returns the value of the hideNoSelectionOption attribute of the given UIComponent
static boolean isPartialOrBehaviorSubmit(javax.faces.context.FacesContext facesContext, java.lang.String clientId)
           
static boolean isReadOnly(javax.faces.component.UIComponent component)
           
static boolean isXHTMLContentType(java.lang.String contentType)
           
static java.util.Map<java.lang.String,java.lang.String> mapAttachedParamsToStringValues(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
static void renderAutoScrollFunction(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer)
          Renders the autoscroll javascript function.
static void renderAutoScrollHiddenInput(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer)
          Renders the hidden form input that is necessary for the autoscroll feature.
static boolean renderBehaviorizedAttribute(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, java.lang.String componentProperty, javax.faces.component.UIComponent component, java.lang.String eventName, java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> eventParameters, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors, java.lang.String htmlAttrName, java.lang.String attributeValue)
          Render an attribute taking into account the passed event, the component property and the passed attribute value for the component property.
static boolean renderBehaviorizedAttribute(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, java.lang.String componentProperty, javax.faces.component.UIComponent component, java.lang.String eventName, java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> eventParameters, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors, java.lang.String htmlAttrName, java.lang.String attributeValue, java.lang.String serverSideScript)
          Render an attribute taking into account the passed event, the passed attribute value for the component property.
static boolean renderBehaviorizedAttribute(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, java.lang.String componentProperty, javax.faces.component.UIComponent component, java.lang.String eventName, java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> eventParameters, java.lang.String eventName2, java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> eventParameters2, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors, java.lang.String htmlAttrName, java.lang.String attributeValue, java.lang.String serverSideScript)
           
static boolean renderBehaviorizedAttribute(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, java.lang.String componentProperty, javax.faces.component.UIComponent component, java.lang.String eventName, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
          Render an attribute taking into account the passed event and the component property.
static boolean renderBehaviorizedAttribute(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, java.lang.String componentProperty, javax.faces.component.UIComponent component, java.lang.String eventName, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors, java.lang.String htmlAttrName)
          Render an attribute taking into account the passed event and the component property.
static boolean renderBehaviorizedAttribute(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, java.lang.String componentProperty, javax.faces.component.UIComponent component, java.lang.String targetClientId, java.lang.String eventName, java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> eventParameters, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors, java.lang.String htmlAttrName, java.lang.String attributeValue)
           
static boolean renderBehaviorizedAttribute(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, java.lang.String componentProperty, javax.faces.component.UIComponent component, java.lang.String targetClientId, java.lang.String eventName, java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> eventParameters, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors, java.lang.String htmlAttrName, java.lang.String attributeValue, java.lang.String serverSideScript)
           
static boolean renderBehaviorizedAttribute(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, java.lang.String componentProperty, javax.faces.component.UIComponent component, java.lang.String targetClientId, java.lang.String eventName, java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> eventParameters, java.lang.String eventName2, java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> eventParameters2, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors, java.lang.String htmlAttrName, java.lang.String attributeValue, java.lang.String serverSideScript)
           
static boolean renderBehaviorizedAttribute(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, java.lang.String componentProperty, javax.faces.component.UIComponent component, java.lang.String targetClientId, java.lang.String eventName, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
           
static boolean renderBehaviorizedAttribute(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, java.lang.String componentProperty, javax.faces.component.UIComponent component, java.lang.String targetClientId, java.lang.String eventName, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors, java.lang.String htmlAttrName)
           
static void renderBehaviorizedEventHandlers(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent uiComponent, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
           
static void renderBehaviorizedEventHandlers(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent uiComponent, java.lang.String targetClientId, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
           
static void renderBehaviorizedEventHandlersWithoutOnclick(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent uiComponent, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
           
static void renderBehaviorizedEventHandlersWithoutOnmouseoverAndOnmouseout(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent uiComponent, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
           
static void renderBehaviorizedFieldEventHandlers(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent uiComponent, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
           
static void renderBehaviorizedFieldEventHandlersWithoutOnchange(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent uiComponent, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
           
static void renderBehaviorizedFieldEventHandlersWithoutOnchange(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent uiComponent, java.lang.String targetClientId, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
           
static void renderBehaviorizedFieldEventHandlersWithoutOnchangeAndOnselect(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent uiComponent, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
           
static void renderBehaviorizedFieldEventHandlersWithoutOnfocus(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent uiComponent, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
           
static boolean renderBehaviorizedOnchangeEventHandler(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent uiComponent, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
           
static boolean renderBehaviorizedOnchangeEventHandler(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent uiComponent, java.lang.String targetClientId, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
           
static void renderClearHiddenCommandFormParamsFunction(javax.faces.context.ResponseWriter writer, java.lang.String formName, java.util.Set dummyFormParams, java.lang.String formTarget)
          Render the javascript function that is called on a click on a commandLink to clear the hidden inputs.
static void renderDisplayValueOnly(javax.faces.context.FacesContext facesContext, javax.faces.component.UIInput input)
           
static void renderDisplayValueOnlyAttributes(javax.faces.component.UIComponent uiComponent, javax.faces.context.ResponseWriter writer)
           
static void renderDisplayValueOnlyForSelects(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
static void renderDisplayValueOnlyForSelects(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, boolean considerValueType)
           
static void renderFormSubmitScript(javax.faces.context.FacesContext facesContext)
           
static void renderHiddenCommandFormParams(javax.faces.context.ResponseWriter writer, java.util.Set dummyFormParams)
           
static void renderHiddenInputField(javax.faces.context.ResponseWriter writer, java.lang.Object name, java.lang.Object value)
           
static boolean renderHTMLAttribute(javax.faces.context.ResponseWriter writer, java.lang.String componentProperty, java.lang.String attrName, java.lang.Object value)
           
static boolean renderHTMLAttribute(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, java.lang.String componentProperty, java.lang.String htmlAttrName)
           
static boolean renderHTMLAttributes(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, java.lang.String[] attributes)
           
static boolean renderHTMLAttributesWithOptionalStartElement(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, java.lang.String elementName, java.lang.String[] attributes)
           
static boolean renderHTMLAttributeWithOptionalStartElement(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, java.lang.String elementName, java.lang.String attrName, java.lang.Object value, boolean startElementWritten)
           
static void renderLabel(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, java.lang.String forClientId, javax.faces.model.SelectItem item, boolean disabled)
          Renders a label HTML element
static void renderLabel(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, java.lang.String forClientId, javax.faces.model.SelectItem item, boolean disabled, boolean selected)
          Renders a label HTML element
static void renderLabel(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, java.lang.String forClientId, java.lang.String labelValue, boolean disabled)
          Deprecated. Replaced by renderLabel(ResponseWriter writer, UIComponent component, String forClientId, SelectItem item, boolean disabled). Renders a label HTML element
static void renderListbox(javax.faces.context.FacesContext facesContext, javax.faces.component.UISelectMany selectMany, boolean disabled, int size, javax.faces.convert.Converter converter)
           
static void renderListbox(javax.faces.context.FacesContext facesContext, javax.faces.component.UISelectOne selectOne, boolean disabled, int size, javax.faces.convert.Converter converter)
           
static void renderMenu(javax.faces.context.FacesContext facesContext, javax.faces.component.UISelectMany selectMany, boolean disabled, javax.faces.convert.Converter converter)
           
static void renderMenu(javax.faces.context.FacesContext facesContext, javax.faces.component.UISelectOne selectOne, boolean disabled, javax.faces.convert.Converter converter)
           
static boolean renderOptionalEndElement(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, java.lang.String elementName, java.lang.String[] attributes)
           
static void renderSelectOptions(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.convert.Converter converter, java.util.Set lookupSet, java.util.List selectItemList)
          Renders the select options for a UIComponent that is rendered as an HTML select element.
static void renderTableCaption(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component)
           
static void renderUnhandledFacesMessages(javax.faces.context.FacesContext facesContext)
          Renders all FacesMessages which have not been rendered yet with the help of a HtmlMessages component.
static void renderViewStateJavascript(javax.faces.context.FacesContext facesContext, java.lang.String hiddenId, java.lang.String serializedState)
           
static java.lang.String selectContentType(java.lang.String contentTypeListString)
           
static void writeIdAndName(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, javax.faces.context.FacesContext facesContext)
           
static void writeIdAndNameIfNecessary(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, javax.faces.context.FacesContext facesContext)
           
static void writeIdIfNecessary(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, javax.faces.context.FacesContext facesContext)
           
static void writePrettyIndent(javax.faces.context.FacesContext facesContext)
           
static void writePrettyLineSeparator(javax.faces.context.FacesContext facesContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HIDDEN_COMMANDLINK_FIELD_NAME

public static final java.lang.String HIDDEN_COMMANDLINK_FIELD_NAME
See Also:
Constant Field Values

HIDDEN_COMMANDLINK_FIELD_NAME_MYFACES_OLD

public static final java.lang.String HIDDEN_COMMANDLINK_FIELD_NAME_MYFACES_OLD
See Also:
Constant Field Values

HIDDEN_COMMANDLINK_FIELD_NAME_TRINIDAD

public static final java.lang.String HIDDEN_COMMANDLINK_FIELD_NAME_TRINIDAD
See Also:
Constant Field Values

CLEAR_HIDDEN_FIELD_FN_NAME

public static final java.lang.String CLEAR_HIDDEN_FIELD_FN_NAME
See Also:
Constant Field Values

SUBMIT_FORM_FN_NAME

public static final java.lang.String SUBMIT_FORM_FN_NAME
See Also:
Constant Field Values

SUBMIT_FORM_FN_NAME_JSF2

public static final java.lang.String SUBMIT_FORM_FN_NAME_JSF2
See Also:
Constant Field Values

ALLOW_CDATA_SECTION_ON

public static final java.lang.String ALLOW_CDATA_SECTION_ON
See Also:
Constant Field Values

NON_SUBMITTED_VALUE_WARNING

public static final java.lang.String NON_SUBMITTED_VALUE_WARNING
See Also:
Constant Field Values

DEFAULT_CHAR_ENCODING

public static java.lang.String DEFAULT_CHAR_ENCODING
Method Detail

decodeUIInput

public static void decodeUIInput(javax.faces.context.FacesContext facesContext,
                                 javax.faces.component.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.


decodeUISelectBoolean

public static void decodeUISelectBoolean(javax.faces.context.FacesContext facesContext,
                                         javax.faces.component.UIComponent component)
X-CHECKED: tlddoc h:selectBooleanCheckbox

Parameters:
facesContext -
component -

isDisabledOrReadOnly

public static boolean isDisabledOrReadOnly(javax.faces.component.UIComponent component)

isDisabled

public static boolean isDisabled(javax.faces.component.UIComponent component)

isReadOnly

public static boolean isReadOnly(javax.faces.component.UIComponent component)

decodeUISelectMany

public static void decodeUISelectMany(javax.faces.context.FacesContext facesContext,
                                      javax.faces.component.UIComponent component)
X-CHECKED: tlddoc h:selectManyListbox

Parameters:
facesContext -
component -

decodeUISelectOne

public static void decodeUISelectOne(javax.faces.context.FacesContext facesContext,
                                     javax.faces.component.UIComponent component)
X-CHECKED: tlddoc h:selectManyListbox

Parameters:
facesContext -
component -

decodeClientBehaviors

public static void decodeClientBehaviors(javax.faces.context.FacesContext facesContext,
                                         javax.faces.component.UIComponent component)
Parameters:
facesContext -
component -
Since:
4.0.0

renderListbox

public static void renderListbox(javax.faces.context.FacesContext facesContext,
                                 javax.faces.component.UISelectOne selectOne,
                                 boolean disabled,
                                 int size,
                                 javax.faces.convert.Converter converter)
                          throws java.io.IOException
Throws:
java.io.IOException

renderListbox

public static void renderListbox(javax.faces.context.FacesContext facesContext,
                                 javax.faces.component.UISelectMany selectMany,
                                 boolean disabled,
                                 int size,
                                 javax.faces.convert.Converter converter)
                          throws java.io.IOException
Throws:
java.io.IOException

renderMenu

public static void renderMenu(javax.faces.context.FacesContext facesContext,
                              javax.faces.component.UISelectOne selectOne,
                              boolean disabled,
                              javax.faces.convert.Converter converter)
                       throws java.io.IOException
Throws:
java.io.IOException

renderMenu

public static void renderMenu(javax.faces.context.FacesContext facesContext,
                              javax.faces.component.UISelectMany selectMany,
                              boolean disabled,
                              javax.faces.convert.Converter converter)
                       throws java.io.IOException
Throws:
java.io.IOException

getSubmittedOrSelectedValuesAsSet

public static java.util.Set getSubmittedOrSelectedValuesAsSet(boolean selectMany,
                                                              javax.faces.component.UIComponent uiComponent,
                                                              javax.faces.context.FacesContext facesContext,
                                                              javax.faces.convert.Converter converter)

findUISelectManyConverterFailsafe

public static javax.faces.convert.Converter findUISelectManyConverterFailsafe(javax.faces.context.FacesContext facesContext,
                                                                              javax.faces.component.UIComponent uiComponent)

findUISelectManyConverterFailsafe

public static javax.faces.convert.Converter findUISelectManyConverterFailsafe(javax.faces.context.FacesContext facesContext,
                                                                              javax.faces.component.UIComponent uiComponent,
                                                                              boolean considerValueType)

findUIOutputConverterFailSafe

public static javax.faces.convert.Converter findUIOutputConverterFailSafe(javax.faces.context.FacesContext facesContext,
                                                                          javax.faces.component.UIComponent uiComponent)

renderSelectOptions

public static void renderSelectOptions(javax.faces.context.FacesContext context,
                                       javax.faces.component.UIComponent component,
                                       javax.faces.convert.Converter converter,
                                       java.util.Set lookupSet,
                                       java.util.List selectItemList)
                                throws java.io.IOException
Renders the select options for a UIComponent that is rendered as an HTML select element.

Parameters:
context - the current FacesContext.
component - the UIComponent whose options need to be rendered.
converter - component's converter
lookupSet - the Set to use to look up selected options
selectItemList - the List of SelectItem s to be rendered as HTML option elements.
Throws:
java.io.IOException

writePrettyLineSeparator

public static void writePrettyLineSeparator(javax.faces.context.FacesContext facesContext)
                                     throws java.io.IOException
Throws:
java.io.IOException

writePrettyIndent

public static void writePrettyIndent(javax.faces.context.FacesContext facesContext)
                              throws java.io.IOException
Throws:
java.io.IOException

renderHTMLAttribute

public static boolean renderHTMLAttribute(javax.faces.context.ResponseWriter writer,
                                          java.lang.String componentProperty,
                                          java.lang.String attrName,
                                          java.lang.Object value)
                                   throws java.io.IOException
Returns:
true, if the attribute was written
Throws:
java.io.IOException

renderHTMLAttribute

public static boolean renderHTMLAttribute(javax.faces.context.ResponseWriter writer,
                                          javax.faces.component.UIComponent component,
                                          java.lang.String componentProperty,
                                          java.lang.String htmlAttrName)
                                   throws java.io.IOException
Returns:
true, if the attribute was written
Throws:
java.io.IOException

renderHTMLAttributes

public static boolean renderHTMLAttributes(javax.faces.context.ResponseWriter writer,
                                           javax.faces.component.UIComponent component,
                                           java.lang.String[] attributes)
                                    throws java.io.IOException
Returns:
true, if an attribute was written
Throws:
java.io.IOException

renderHTMLAttributeWithOptionalStartElement

public static boolean renderHTMLAttributeWithOptionalStartElement(javax.faces.context.ResponseWriter writer,
                                                                  javax.faces.component.UIComponent component,
                                                                  java.lang.String elementName,
                                                                  java.lang.String attrName,
                                                                  java.lang.Object value,
                                                                  boolean startElementWritten)
                                                           throws java.io.IOException
Throws:
java.io.IOException

renderHTMLAttributesWithOptionalStartElement

public static boolean renderHTMLAttributesWithOptionalStartElement(javax.faces.context.ResponseWriter writer,
                                                                   javax.faces.component.UIComponent component,
                                                                   java.lang.String elementName,
                                                                   java.lang.String[] attributes)
                                                            throws java.io.IOException
Throws:
java.io.IOException

renderOptionalEndElement

public static boolean renderOptionalEndElement(javax.faces.context.ResponseWriter writer,
                                               javax.faces.component.UIComponent component,
                                               java.lang.String elementName,
                                               java.lang.String[] attributes)
                                        throws java.io.IOException
Throws:
java.io.IOException

writeIdIfNecessary

public static void writeIdIfNecessary(javax.faces.context.ResponseWriter writer,
                                      javax.faces.component.UIComponent component,
                                      javax.faces.context.FacesContext facesContext)
                               throws java.io.IOException
Throws:
java.io.IOException

writeIdAndNameIfNecessary

public static void writeIdAndNameIfNecessary(javax.faces.context.ResponseWriter writer,
                                             javax.faces.component.UIComponent component,
                                             javax.faces.context.FacesContext facesContext)
                                      throws java.io.IOException
Throws:
java.io.IOException

writeIdAndName

public static void writeIdAndName(javax.faces.context.ResponseWriter writer,
                                  javax.faces.component.UIComponent component,
                                  javax.faces.context.FacesContext facesContext)
                           throws java.io.IOException
Throws:
java.io.IOException

renderDisplayValueOnlyForSelects

public static void renderDisplayValueOnlyForSelects(javax.faces.context.FacesContext facesContext,
                                                    javax.faces.component.UIComponent uiComponent)
                                             throws java.io.IOException
Throws:
java.io.IOException

renderDisplayValueOnlyForSelects

public static void renderDisplayValueOnlyForSelects(javax.faces.context.FacesContext facesContext,
                                                    javax.faces.component.UIComponent uiComponent,
                                                    boolean considerValueType)
                                             throws java.io.IOException
Throws:
java.io.IOException

renderDisplayValueOnlyAttributes

public static void renderDisplayValueOnlyAttributes(javax.faces.component.UIComponent uiComponent,
                                                    javax.faces.context.ResponseWriter writer)
                                             throws java.io.IOException
Throws:
java.io.IOException

renderTableCaption

public static void renderTableCaption(javax.faces.context.FacesContext context,
                                      javax.faces.context.ResponseWriter writer,
                                      javax.faces.component.UIComponent component)
                               throws java.io.IOException
Throws:
java.io.IOException

getDisplayValueOnlyStyleClass

public static java.lang.String getDisplayValueOnlyStyleClass(javax.faces.component.UIComponent component)

getDisplayValueOnlyStyle

public static java.lang.String getDisplayValueOnlyStyle(javax.faces.component.UIComponent component)

isDisplayValueOnly

public static boolean isDisplayValueOnly(javax.faces.component.UIComponent component)

renderDisplayValueOnly

public static void renderDisplayValueOnly(javax.faces.context.FacesContext facesContext,
                                          javax.faces.component.UIInput input)
                                   throws java.io.IOException
Throws:
java.io.IOException

appendClearHiddenCommandFormParamsFunctionCall

public static void appendClearHiddenCommandFormParamsFunctionCall(java.lang.StringBuffer buf,
                                                                  java.lang.String formName)

renderFormSubmitScript

public static void renderFormSubmitScript(javax.faces.context.FacesContext facesContext)
                                   throws java.io.IOException
Throws:
java.io.IOException

appendAutoScrollAssignment

public static void appendAutoScrollAssignment(java.lang.StringBuffer onClickValue,
                                              java.lang.String formName)
Adds the hidden form input value assignment that is necessary for the autoscroll feature to an html link or button onclick attribute.


appendAutoScrollAssignment

public static void appendAutoScrollAssignment(javax.faces.context.FacesContext context,
                                              java.lang.StringBuffer onClickValue,
                                              java.lang.String formName)
Adds the hidden form input value assignment that is necessary for the autoscroll feature to an html link or button onclick attribute.


renderAutoScrollHiddenInput

public static void renderAutoScrollHiddenInput(javax.faces.context.FacesContext facesContext,
                                               javax.faces.context.ResponseWriter writer)
                                        throws java.io.IOException
Renders the hidden form input that is necessary for the autoscroll feature.

Throws:
java.io.IOException

renderAutoScrollFunction

public static void renderAutoScrollFunction(javax.faces.context.FacesContext facesContext,
                                            javax.faces.context.ResponseWriter writer)
                                     throws java.io.IOException
Renders the autoscroll javascript function.

Throws:
java.io.IOException

getAutoScrollFunction

public static java.lang.String getAutoScrollFunction(javax.faces.context.FacesContext facesContext)

isAllowedCdataSection

public static boolean isAllowedCdataSection(javax.faces.context.FacesContext fc)

allowCdataSection

public static void allowCdataSection(javax.faces.context.FacesContext fc,
                                     boolean cdataSectionAllowed)

renderHiddenCommandFormParams

public static void renderHiddenCommandFormParams(javax.faces.context.ResponseWriter writer,
                                                 java.util.Set dummyFormParams)
                                          throws java.io.IOException
Throws:
java.io.IOException

renderHiddenInputField

public static void renderHiddenInputField(javax.faces.context.ResponseWriter writer,
                                          java.lang.Object name,
                                          java.lang.Object value)
                                   throws java.io.IOException
Throws:
java.io.IOException

renderLabel

@Deprecated
public static void renderLabel(javax.faces.context.ResponseWriter writer,
                                          javax.faces.component.UIComponent component,
                                          java.lang.String forClientId,
                                          java.lang.String labelValue,
                                          boolean disabled)
                        throws java.io.IOException
Deprecated. Replaced by renderLabel(ResponseWriter writer, UIComponent component, String forClientId, SelectItem item, boolean disabled). Renders a label HTML element

Throws:
java.io.IOException

renderLabel

public static void renderLabel(javax.faces.context.ResponseWriter writer,
                               javax.faces.component.UIComponent component,
                               java.lang.String forClientId,
                               javax.faces.model.SelectItem item,
                               boolean disabled)
                        throws java.io.IOException
Renders a label HTML element

Throws:
java.io.IOException

renderLabel

public static void renderLabel(javax.faces.context.ResponseWriter writer,
                               javax.faces.component.UIComponent component,
                               java.lang.String forClientId,
                               javax.faces.model.SelectItem item,
                               boolean disabled,
                               boolean selected)
                        throws java.io.IOException
Renders a label HTML element

Throws:
java.io.IOException

renderClearHiddenCommandFormParamsFunction

public static void renderClearHiddenCommandFormParamsFunction(javax.faces.context.ResponseWriter writer,
                                                              java.lang.String formName,
                                                              java.util.Set dummyFormParams,
                                                              java.lang.String formTarget)
                                                       throws java.io.IOException
Render the javascript function that is called on a click on a commandLink to clear the hidden inputs. This is necessary because on a browser back, each hidden input still has it's old value (browser cache!) and therefore a new submit would cause the according action once more!

Parameters:
writer -
formName -
dummyFormParams -
formTarget -
Throws:
java.io.IOException

getClearHiddenCommandFormParamsFunctionName

public static java.lang.String getClearHiddenCommandFormParamsFunctionName(java.lang.String formName)
Prefixes the given String with "clear_" and removes special characters

Parameters:
formName -
Returns:
String

getClearHiddenCommandFormParamsFunctionNameMyfacesLegacy

public static java.lang.String getClearHiddenCommandFormParamsFunctionNameMyfacesLegacy(java.lang.String formName)

getHiddenCommandLinkFieldName

public static java.lang.String getHiddenCommandLinkFieldName(FormInfo formInfo)
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.


isPartialOrBehaviorSubmit

public static boolean isPartialOrBehaviorSubmit(javax.faces.context.FacesContext facesContext,
                                                java.lang.String clientId)

getHiddenCommandLinkFieldNameMyfacesOld

public static java.lang.String getHiddenCommandLinkFieldNameMyfacesOld(FormInfo formInfo)
Deprecated. Use getHiddenCommandLinkFieldNameMyfaces(FormInfo) instead

Parameters:
formInfo -
Returns:

getOutcomeTargetHref

public static java.lang.String getOutcomeTargetHref(javax.faces.context.FacesContext facesContext,
                                                    javax.faces.component.UIOutcomeTarget component)
                                             throws java.io.IOException
Throws:
java.io.IOException

selectContentType

public static java.lang.String selectContentType(java.lang.String contentTypeListString)

getSupportedContentTypes

public static java.lang.String[] getSupportedContentTypes()

isXHTMLContentType

public static boolean isXHTMLContentType(java.lang.String contentType)

getJavascriptLocation

public static java.lang.String getJavascriptLocation(javax.faces.component.UIComponent component)

getImageLocation

public static java.lang.String getImageLocation(javax.faces.component.UIComponent component)

getStyleLocation

public static java.lang.String getStyleLocation(javax.faces.component.UIComponent component)

hasClientBehavior

public static boolean hasClientBehavior(java.lang.String eventName,
                                        java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> behaviors,
                                        javax.faces.context.FacesContext facesContext)
Checks if the given component has a behavior attachment with a given name.

Parameters:
eventName - the event name to be checked for
behaviors - map of behaviors attached to the component
Returns:
true if client behavior with given name is attached, false otherwise
Since:
4.0.0

getClientBehaviorContextParameters

public static java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> getClientBehaviorContextParameters(java.util.Map<java.lang.String,java.lang.String> params)

buildBehaviorChain

public static java.lang.String buildBehaviorChain(javax.faces.context.FacesContext facesContext,
                                                  javax.faces.component.UIComponent uiComponent,
                                                  java.lang.String eventName,
                                                  java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> params,
                                                  java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors,
                                                  java.lang.String userEventCode,
                                                  java.lang.String serverEventCode)
Parameters:
facesContext -
uiComponent -
clientBehaviors -
eventName -
userEventCode -
serverEventCode -
params -
Returns:
Since:
4.0.0

buildBehaviorChain

public static java.lang.String buildBehaviorChain(javax.faces.context.FacesContext facesContext,
                                                  javax.faces.component.UIComponent uiComponent,
                                                  java.lang.String targetClientId,
                                                  java.lang.String eventName,
                                                  java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> params,
                                                  java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors,
                                                  java.lang.String userEventCode,
                                                  java.lang.String serverEventCode)

buildBehaviorChain

public static java.lang.String buildBehaviorChain(javax.faces.context.FacesContext facesContext,
                                                  javax.faces.component.UIComponent uiComponent,
                                                  java.lang.String eventName1,
                                                  java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> params,
                                                  java.lang.String eventName2,
                                                  java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> params2,
                                                  java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors,
                                                  java.lang.String userEventCode,
                                                  java.lang.String serverEventCode)
Parameters:
facesContext -
uiComponent -
clientBehaviors -
eventName1 -
eventName2 -
userEventCode -
serverEventCode -
params -
Returns:
Since:
4.0.0

buildBehaviorChain

public static java.lang.String buildBehaviorChain(javax.faces.context.FacesContext facesContext,
                                                  javax.faces.component.UIComponent uiComponent,
                                                  java.lang.String targetClientId,
                                                  java.lang.String eventName1,
                                                  java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> params,
                                                  java.lang.String eventName2,
                                                  java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> params2,
                                                  java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors,
                                                  java.lang.String userEventCode,
                                                  java.lang.String serverEventCode)

escapeJavaScriptForChain

public static java.lang.String escapeJavaScriptForChain(java.lang.String javaScript)
This function correctly escapes the given JavaScript code for the use in the jsf.util.chain() JavaScript function. It also handles double-escaping correclty.

Parameters:
javaScript -
Returns:

mapAttachedParamsToStringValues

public static java.util.Map<java.lang.String,java.lang.String> mapAttachedParamsToStringValues(javax.faces.context.FacesContext facesContext,
                                                                                               javax.faces.component.UIComponent uiComponent)
Parameters:
facesContext -
uiComponent -
Returns:

getValidUIParameterChildren

public static java.util.List<javax.faces.component.UIParameter> getValidUIParameterChildren(javax.faces.context.FacesContext facesContext,
                                                                                            java.util.List<javax.faces.component.UIComponent> children,
                                                                                            boolean skipNullValue,
                                                                                            boolean skipUnrendered)
Calls getValidUIParameterChildren(facesContext, children, skipNullValue, skipUnrendered, true);

Parameters:
facesContext -
children -
skipNullValue -
skipUnrendered -
Returns:

getValidUIParameterChildren

public static java.util.List<javax.faces.component.UIParameter> getValidUIParameterChildren(javax.faces.context.FacesContext facesContext,
                                                                                            java.util.List<javax.faces.component.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:

renderBehaviorizedAttribute

public static boolean renderBehaviorizedAttribute(javax.faces.context.FacesContext facesContext,
                                                  javax.faces.context.ResponseWriter writer,
                                                  java.lang.String componentProperty,
                                                  javax.faces.component.UIComponent component,
                                                  java.lang.String eventName,
                                                  java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
                                           throws java.io.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:
java.io.IOException
Since:
4.0.1

renderBehaviorizedAttribute

public static boolean renderBehaviorizedAttribute(javax.faces.context.FacesContext facesContext,
                                                  javax.faces.context.ResponseWriter writer,
                                                  java.lang.String componentProperty,
                                                  javax.faces.component.UIComponent component,
                                                  java.lang.String targetClientId,
                                                  java.lang.String eventName,
                                                  java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
                                           throws java.io.IOException
Throws:
java.io.IOException

renderBehaviorizedAttribute

public static boolean renderBehaviorizedAttribute(javax.faces.context.FacesContext facesContext,
                                                  javax.faces.context.ResponseWriter writer,
                                                  java.lang.String componentProperty,
                                                  javax.faces.component.UIComponent component,
                                                  java.lang.String eventName,
                                                  java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors,
                                                  java.lang.String htmlAttrName)
                                           throws java.io.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:
java.io.IOException
Since:
4.0.1

renderBehaviorizedAttribute

public static boolean renderBehaviorizedAttribute(javax.faces.context.FacesContext facesContext,
                                                  javax.faces.context.ResponseWriter writer,
                                                  java.lang.String componentProperty,
                                                  javax.faces.component.UIComponent component,
                                                  java.lang.String targetClientId,
                                                  java.lang.String eventName,
                                                  java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors,
                                                  java.lang.String htmlAttrName)
                                           throws java.io.IOException
Throws:
java.io.IOException

renderBehaviorizedAttribute

public static boolean renderBehaviorizedAttribute(javax.faces.context.FacesContext facesContext,
                                                  javax.faces.context.ResponseWriter writer,
                                                  java.lang.String componentProperty,
                                                  javax.faces.component.UIComponent component,
                                                  java.lang.String eventName,
                                                  java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> eventParameters,
                                                  java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors,
                                                  java.lang.String htmlAttrName,
                                                  java.lang.String attributeValue)
                                           throws java.io.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:
java.io.IOException

renderBehaviorizedAttribute

public static boolean renderBehaviorizedAttribute(javax.faces.context.FacesContext facesContext,
                                                  javax.faces.context.ResponseWriter writer,
                                                  java.lang.String componentProperty,
                                                  javax.faces.component.UIComponent component,
                                                  java.lang.String targetClientId,
                                                  java.lang.String eventName,
                                                  java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> eventParameters,
                                                  java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors,
                                                  java.lang.String htmlAttrName,
                                                  java.lang.String attributeValue)
                                           throws java.io.IOException
Throws:
java.io.IOException

renderBehaviorizedAttribute

public static boolean renderBehaviorizedAttribute(javax.faces.context.FacesContext facesContext,
                                                  javax.faces.context.ResponseWriter writer,
                                                  java.lang.String componentProperty,
                                                  javax.faces.component.UIComponent component,
                                                  java.lang.String eventName,
                                                  java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> eventParameters,
                                                  java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors,
                                                  java.lang.String htmlAttrName,
                                                  java.lang.String attributeValue,
                                                  java.lang.String serverSideScript)
                                           throws java.io.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:
java.io.IOException

renderBehaviorizedAttribute

public static boolean renderBehaviorizedAttribute(javax.faces.context.FacesContext facesContext,
                                                  javax.faces.context.ResponseWriter writer,
                                                  java.lang.String componentProperty,
                                                  javax.faces.component.UIComponent component,
                                                  java.lang.String targetClientId,
                                                  java.lang.String eventName,
                                                  java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> eventParameters,
                                                  java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors,
                                                  java.lang.String htmlAttrName,
                                                  java.lang.String attributeValue,
                                                  java.lang.String serverSideScript)
                                           throws java.io.IOException
Throws:
java.io.IOException

renderBehaviorizedAttribute

public static boolean renderBehaviorizedAttribute(javax.faces.context.FacesContext facesContext,
                                                  javax.faces.context.ResponseWriter writer,
                                                  java.lang.String componentProperty,
                                                  javax.faces.component.UIComponent component,
                                                  java.lang.String eventName,
                                                  java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> eventParameters,
                                                  java.lang.String eventName2,
                                                  java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> eventParameters2,
                                                  java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors,
                                                  java.lang.String htmlAttrName,
                                                  java.lang.String attributeValue,
                                                  java.lang.String serverSideScript)
                                           throws java.io.IOException
Parameters:
facesContext -
writer -
componentProperty -
component -
eventName -
eventParameters -
eventName2 -
eventParameters2 -
clientBehaviors -
htmlAttrName -
attributeValue -
serverSideScript -
Returns:
Throws:
java.io.IOException

renderBehaviorizedAttribute

public static boolean renderBehaviorizedAttribute(javax.faces.context.FacesContext facesContext,
                                                  javax.faces.context.ResponseWriter writer,
                                                  java.lang.String componentProperty,
                                                  javax.faces.component.UIComponent component,
                                                  java.lang.String targetClientId,
                                                  java.lang.String eventName,
                                                  java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> eventParameters,
                                                  java.lang.String eventName2,
                                                  java.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> eventParameters2,
                                                  java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors,
                                                  java.lang.String htmlAttrName,
                                                  java.lang.String attributeValue,
                                                  java.lang.String serverSideScript)
                                           throws java.io.IOException
Throws:
java.io.IOException

renderBehaviorizedEventHandlers

public static void renderBehaviorizedEventHandlers(javax.faces.context.FacesContext facesContext,
                                                   javax.faces.context.ResponseWriter writer,
                                                   javax.faces.component.UIComponent uiComponent,
                                                   java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
                                            throws java.io.IOException
Parameters:
facesContext -
writer -
uiComponent -
clientBehaviors -
Throws:
java.io.IOException
Since:
4.0.0

renderBehaviorizedEventHandlers

public static void renderBehaviorizedEventHandlers(javax.faces.context.FacesContext facesContext,
                                                   javax.faces.context.ResponseWriter writer,
                                                   javax.faces.component.UIComponent uiComponent,
                                                   java.lang.String targetClientId,
                                                   java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
                                            throws java.io.IOException
Throws:
java.io.IOException

renderBehaviorizedEventHandlersWithoutOnclick

public static void renderBehaviorizedEventHandlersWithoutOnclick(javax.faces.context.FacesContext facesContext,
                                                                 javax.faces.context.ResponseWriter writer,
                                                                 javax.faces.component.UIComponent uiComponent,
                                                                 java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
                                                          throws java.io.IOException
Parameters:
facesContext -
writer -
uiComponent -
clientBehaviors -
Throws:
java.io.IOException
Since:
4.0.0

renderBehaviorizedEventHandlersWithoutOnmouseoverAndOnmouseout

public static void renderBehaviorizedEventHandlersWithoutOnmouseoverAndOnmouseout(javax.faces.context.FacesContext facesContext,
                                                                                  javax.faces.context.ResponseWriter writer,
                                                                                  javax.faces.component.UIComponent uiComponent,
                                                                                  java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
                                                                           throws java.io.IOException
Throws:
java.io.IOException

renderBehaviorizedFieldEventHandlers

public static void renderBehaviorizedFieldEventHandlers(javax.faces.context.FacesContext facesContext,
                                                        javax.faces.context.ResponseWriter writer,
                                                        javax.faces.component.UIComponent uiComponent,
                                                        java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
                                                 throws java.io.IOException
Parameters:
facesContext -
writer -
uiComponent -
clientBehaviors -
Throws:
java.io.IOException
Since:
4.0.0

renderBehaviorizedFieldEventHandlersWithoutOnfocus

public static void renderBehaviorizedFieldEventHandlersWithoutOnfocus(javax.faces.context.FacesContext facesContext,
                                                                      javax.faces.context.ResponseWriter writer,
                                                                      javax.faces.component.UIComponent uiComponent,
                                                                      java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
                                                               throws java.io.IOException
Throws:
java.io.IOException

renderBehaviorizedFieldEventHandlersWithoutOnchange

public static void renderBehaviorizedFieldEventHandlersWithoutOnchange(javax.faces.context.FacesContext facesContext,
                                                                       javax.faces.context.ResponseWriter writer,
                                                                       javax.faces.component.UIComponent uiComponent,
                                                                       java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
                                                                throws java.io.IOException
Parameters:
facesContext -
writer -
uiComponent -
clientBehaviors -
Throws:
java.io.IOException
Since:
4.0.0

renderBehaviorizedFieldEventHandlersWithoutOnchange

public static void renderBehaviorizedFieldEventHandlersWithoutOnchange(javax.faces.context.FacesContext facesContext,
                                                                       javax.faces.context.ResponseWriter writer,
                                                                       javax.faces.component.UIComponent uiComponent,
                                                                       java.lang.String targetClientId,
                                                                       java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
                                                                throws java.io.IOException
Throws:
java.io.IOException

renderBehaviorizedFieldEventHandlersWithoutOnchangeAndOnselect

public static void renderBehaviorizedFieldEventHandlersWithoutOnchangeAndOnselect(javax.faces.context.FacesContext facesContext,
                                                                                  javax.faces.context.ResponseWriter writer,
                                                                                  javax.faces.component.UIComponent uiComponent,
                                                                                  java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
                                                                           throws java.io.IOException
Throws:
java.io.IOException

renderBehaviorizedOnchangeEventHandler

public static boolean renderBehaviorizedOnchangeEventHandler(javax.faces.context.FacesContext facesContext,
                                                             javax.faces.context.ResponseWriter writer,
                                                             javax.faces.component.UIComponent uiComponent,
                                                             java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
                                                      throws java.io.IOException
Parameters:
facesContext -
writer -
uiComponent -
clientBehaviors -
Returns:
Throws:
java.io.IOException
Since:
4.0.0

renderBehaviorizedOnchangeEventHandler

public static boolean renderBehaviorizedOnchangeEventHandler(javax.faces.context.FacesContext facesContext,
                                                             javax.faces.context.ResponseWriter writer,
                                                             javax.faces.component.UIComponent uiComponent,
                                                             java.lang.String targetClientId,
                                                             java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> clientBehaviors)
                                                      throws java.io.IOException
Throws:
java.io.IOException

renderViewStateJavascript

public static void renderViewStateJavascript(javax.faces.context.FacesContext facesContext,
                                             java.lang.String hiddenId,
                                             java.lang.String serializedState)
                                      throws java.io.IOException
Throws:
java.io.IOException

isHideNoSelectionOption

public static boolean isHideNoSelectionOption(javax.faces.component.UIComponent component)
Returns the value of the hideNoSelectionOption attribute of the given UIComponent

Parameters:
component -
Returns:

renderUnhandledFacesMessages

public static void renderUnhandledFacesMessages(javax.faces.context.FacesContext facesContext)
                                         throws java.io.IOException
Renders all FacesMessages which have not been rendered yet with the help of a HtmlMessages component.

Parameters:
facesContext -
Throws:
java.io.IOException


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.