четверг, 26 апреля 2012 г.

JSF HTML tag library - InputHidden


The inputHidden tag renders an HTML input element of the type "hidden". It is essential that this tag is inside the <h:form> tag.


<h:inputHidden id="hiddenValue" value="#{yourbean.hiddenValue}" />

HTML Output

<input id="form:hiddenValue" name="form:hiddenValue"  type="hidden" value="Your Hidden Value"/>

Tag Attributes

The value-binding expression linking this component tag to a backing bean property.
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.
The unique identifier value for this component. The value must be unique within the closest naming container.
The immediate attribute is a boolean flag indicating that component events should be sent to registered event listeners immediately rather than after the validation phase of the JSF request processing lifecycle. The immediate flag allows you bypass JSF validation for a particular component.
A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered.
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.
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.
The value attribute sets the current value for this component.
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.

Комментариев нет:

Отправить комментарий