Home » JSF h:inputHidden

JSF h:inputHidden

by Online Tutorials Library

JSF <h:inputHidden> Tag

It renders an HTML “input” element of type hidden. It does not appear in web page, so you can pass hidden information while submitting form.

Example

Output:

This is hidden type input text. It dosen’t display on web page.

Attributes

Attribute Description
id It is an identifier for this component. This id must be unique. You can use it to access HTML element in CSS and JS file.
value It holds the current value of this field.
class CSS class name for this component.
required It indicates that the user is required to provide a submitted value for this input component.
requiredMessage If required attribute is set to true, the message description provided in the requiredMessage is display to the web page.
Next TopicJSF <h:inputFile>

You may also like