| java.lang.Object org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils
HtmlRendererUtils | final public class HtmlRendererUtils (Code) | | author: Manfred Geiler (latest modification by $Author: matzew $) version: $Revision: 555720 $ $Date: 2007-07-12 21:03:38 +0200 (Do, 12 Jul 2007) $ |
Inner Class :public static class LinkParameter | |
Inner Class :public static class ScriptContext | |
Method Summary | |
public static void | allowCdataSection(FacesContext fc, boolean cdataSectionAllowed) | public static void | appendAutoScrollAssignment(StringBuffer onClickValue, String formName) Adds the hidden form input value assignment that is necessary for the autoscroll
feature to an html link or button onclick attribute. | public static void | appendClearHiddenCommandFormParamsFunctionCall(StringBuffer buf, String formName) | public 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. | public static void | decodeUISelectBoolean(FacesContext facesContext, UIComponent component) | public static void | decodeUISelectMany(FacesContext facesContext, UIComponent component) | public static void | decodeUISelectOne(FacesContext facesContext, UIComponent component) | public static Converter | findUIOutputConverterFailSafe(FacesContext facesContext, UIComponent uiComponent) | public static Converter | findUISelectManyConverterFailsafe(FacesContext facesContext, UIComponent uiComponent) | public static String | getClearHiddenCommandFormParamsFunctionName(String formName) | public static String | getClearHiddenCommandFormParamsFunctionNameMyfacesLegacy(String formName) | public static String | getDisplayValueOnlyStyle(UIComponent component) | public static String | getDisplayValueOnlyStyleClass(UIComponent component) | public static 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. | public static String | getHiddenCommandLinkFieldNameMyfacesOld(FormInfo formInfo) | public static String | getImageLocation(UIComponent component) | public static String | getJavascriptLocation(UIComponent component) | public static String | getStyleLocation(UIComponent component) | public static Set | getSubmittedOrSelectedValuesAsSet(boolean selectMany, UIComponent uiComponent, FacesContext facesContext, Converter converter) | public static String[] | getSupportedContentTypes() | public static boolean | isAllowedCdataSection(FacesContext fc) | public static boolean | isDisabled(UIComponent component) | public static boolean | isDisabledOrReadOnly(UIComponent component) | public static boolean | isDisplayValueOnly(UIComponent component) | public static boolean | isReadOnly(UIComponent component) | public static boolean | isXHTMLContentType(String contentType) | public static void | renderAutoScrollFunction(FacesContext facesContext, ResponseWriter writer) Renders the autoscroll javascript function. | public static void | renderAutoScrollHiddenInput(FacesContext facesContext, ResponseWriter writer) Renders the hidden form input that is necessary for the autoscroll feature. | public static void | renderClearHiddenCommandFormParamsFunction(ResponseWriter writer, String formName, Set dummyFormParams, String formTarget) Render the javascript function that is called on a click on a commandLink
to clear the hidden inputs. | public static void | renderDisplayValueOnly(FacesContext facesContext, UIInput input) | public static void | renderDisplayValueOnlyAttributes(UIComponent uiComponent, ResponseWriter writer) | public static void | renderDisplayValueOnlyForSelects(FacesContext facesContext, UIComponent uiComponent) | public static void | renderFormSubmitScript(FacesContext facesContext) | public static boolean | renderHTMLAttribute(ResponseWriter writer, String componentProperty, String attrName, Object value) | public static boolean | renderHTMLAttribute(ResponseWriter writer, UIComponent component, String componentProperty, String htmlAttrName) | public static boolean | renderHTMLAttributeWithOptionalStartElement(ResponseWriter writer, UIComponent component, String elementName, String attrName, Object value, boolean startElementWritten) | public static boolean | renderHTMLAttributes(ResponseWriter writer, UIComponent component, String[] attributes) | public static boolean | renderHTMLAttributesWithOptionalStartElement(ResponseWriter writer, UIComponent component, String elementName, String[] attributes) | public static void | renderHiddenCommandFormParams(ResponseWriter writer, Set dummyFormParams) | public static void | renderHiddenInputField(ResponseWriter writer, Object name, Object value) | public static void | renderLabel(ResponseWriter writer, UIComponent component, String forClientId, String labelValue, boolean disabled) | public static void | renderListbox(FacesContext facesContext, UISelectOne selectOne, boolean disabled, int size) | public static void | renderListbox(FacesContext facesContext, UISelectMany selectMany, boolean disabled, int size) | public static void | renderMenu(FacesContext facesContext, UISelectOne selectOne, boolean disabled) | public static void | renderMenu(FacesContext facesContext, UISelectMany selectMany, boolean disabled) | public static boolean | renderOptionalEndElement(ResponseWriter writer, UIComponent component, String elementName, String[] attributes) | public static void | renderSelectOptions(FacesContext context, UIComponent component, Converter converter, Set lookupSet, List selectItemList) Renders the select options for a UIComponent that is
rendered as an HTML select element. | public static void | renderTableCaption(FacesContext context, ResponseWriter writer, UIComponent component) | public static String | selectContentType(String contentTypeListString) | public static void | writeIdAndNameIfNecessary(ResponseWriter writer, UIComponent component, FacesContext facesContext) | public static void | writeIdIfNecessary(ResponseWriter writer, UIComponent component, FacesContext facesContext) | public static void | writePrettyIndent(FacesContext facesContext) | public static void | writePrettyLineSeparator(FacesContext facesContext) |
ALLOW_CDATA_SECTION_ON | final public static String ALLOW_CDATA_SECTION_ON(Code) | | |
CLEAR_HIDDEN_FIELD_FN_NAME | final public static String CLEAR_HIDDEN_FIELD_FN_NAME(Code) | | |
DEFAULT_CHAR_ENCODING | public static String DEFAULT_CHAR_ENCODING(Code) | | |
HIDDEN_COMMANDLINK_FIELD_NAME | final public static String HIDDEN_COMMANDLINK_FIELD_NAME(Code) | | |
HIDDEN_COMMANDLINK_FIELD_NAME_MYFACES_OLD | final public static String HIDDEN_COMMANDLINK_FIELD_NAME_MYFACES_OLD(Code) | | |
HIDDEN_COMMANDLINK_FIELD_NAME_TRINIDAD | final public static String HIDDEN_COMMANDLINK_FIELD_NAME_TRINIDAD(Code) | | |
NON_SUBMITTED_VALUE_WARNING | final public static String NON_SUBMITTED_VALUE_WARNING(Code) | | |
SUBMIT_FORM_FN_NAME | final public static String SUBMIT_FORM_FN_NAME(Code) | | |
allowCdataSection | public static void allowCdataSection(FacesContext fc, boolean cdataSectionAllowed)(Code) | | |
appendAutoScrollAssignment | public static void appendAutoScrollAssignment(StringBuffer onClickValue, String formName)(Code) | | Adds the hidden form input value assignment that is necessary for the autoscroll
feature to an html link or button onclick attribute.
|
appendClearHiddenCommandFormParamsFunctionCall | public static void appendClearHiddenCommandFormParamsFunctionCall(StringBuffer buf, String formName)(Code) | | |
decodeUIInput | public static void decodeUIInput(FacesContext facesContext, UIComponent component)(Code) | | 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(FacesContext facesContext, UIComponent component)(Code) | | X-CHECKED: tlddoc h:selectBooleanCheckbox
Parameters: facesContext - Parameters: component - |
decodeUISelectMany | public static void decodeUISelectMany(FacesContext facesContext, UIComponent component)(Code) | | X-CHECKED: tlddoc h:selectManyListbox
Parameters: facesContext - Parameters: component - |
decodeUISelectOne | public static void decodeUISelectOne(FacesContext facesContext, UIComponent component)(Code) | | X-CHECKED: tlddoc h:selectManyListbox
Parameters: facesContext - Parameters: component - |
getClearHiddenCommandFormParamsFunctionName | public static String getClearHiddenCommandFormParamsFunctionName(String formName)(Code) | | Prefixes the given String with "clear_" and removes special characters
Parameters: formName - String |
getClearHiddenCommandFormParamsFunctionNameMyfacesLegacy | public static String getClearHiddenCommandFormParamsFunctionNameMyfacesLegacy(String formName)(Code) | | |
getHiddenCommandLinkFieldName | public static String getHiddenCommandLinkFieldName(FormInfo formInfo)(Code) | | 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.
|
getHiddenCommandLinkFieldNameMyfacesOld | public static String getHiddenCommandLinkFieldNameMyfacesOld(FormInfo formInfo)(Code) | | |
getSupportedContentTypes | public static String[] getSupportedContentTypes()(Code) | | |
isDisabledOrReadOnly | public static boolean isDisabledOrReadOnly(UIComponent component)(Code) | | |
isDisplayValueOnly | public static boolean isDisplayValueOnly(UIComponent component)(Code) | | |
isXHTMLContentType | public static boolean isXHTMLContentType(String contentType)(Code) | | |
renderAutoScrollHiddenInput | public static void renderAutoScrollHiddenInput(FacesContext facesContext, ResponseWriter writer) throws IOException(Code) | | Renders the hidden form input that is necessary for the autoscroll feature.
|
renderClearHiddenCommandFormParamsFunction | public static void renderClearHiddenCommandFormParamsFunction(ResponseWriter writer, String formName, Set dummyFormParams, String formTarget) throws IOException(Code) | | 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 - Parameters: formName - Parameters: dummyFormParams - Parameters: formTarget - throws: IOException - |
renderSelectOptions | public static void renderSelectOptions(FacesContext context, UIComponent component, Converter converter, Set lookupSet, List selectItemList) throws IOException(Code) | | Renders the select options for a UIComponent that is
rendered as an HTML select element.
Parameters: context - the current FacesContext . Parameters: component - the UIComponent whose options need to berendered. Parameters: converter - component 's converter Parameters: lookupSet - the Set to use to look up selected options Parameters: selectItemList - the List of SelectItem s to berendered as HTML option elements. throws: IOException - |
selectContentType | public static String selectContentType(String contentTypeListString)(Code) | | |
|
|