12. JSF Tag Reference
Contents > JSF Tag Reference > JSF HTML Tags
10. JSF HTML Tag Reference
Contents > JSF HTML Tag Reference > h:inputHidden
h:inputHidden |
|
The inputHidden tag renders an HTML input element of the type "hidden".
Example:
<h:inputHidden id="hidden1" value="#{myBean.hiddenValue}" />
HTML Output
<input id="form:hidden1" name="form:hidden1" type="hidden" value="Hidden Value"/>
|
Tag Attributes
| binding |
String |
| |
| The value-binding expression linking this component tag to a backing bean property. |
| converter |
String |
| |
| The converter attribute sets the converter instance to be registered for this component. It must match the converter-id value of a converter element defined in your Faces configuration file. |
| id |
String |
| |
| The unique identifier value for this component. The value must be unique within the closest naming container. |
| rendered |
String |
| |
| A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered. |
| required |
String |
| |
| The required attribute is a boolean flag that indicates whether or not the user is required to provide a value for this field before the form can be submitted to the server. |
| validator |
String |
| |
| The validator attribute accepts a method-binding expression representing a validator method that will be called when the JSF framework validates this component. A validator method must be a public method that takes FacesContext, UIComponent, and Object parameters, with a return type of void. |
| value |
String |
| |
| The value attribute sets the current value for this component. |
| valueChangeListener |
String |
| |
| The valueChangeListener attribute accepts a method-binding expression representing a value change listener method to be notified when a new value has been set for this input component. A value change listener method must be a public method that takes a ValueChangeEvent parameter, with a return type of void. |
|