servlets struts hibernate spring maven java
 

JSF <h:inputHidden> Tag



It renders a HTML "input" component of sort covered up. It doesn't show up in website page, so you can pass hidden information while submitting form.

Example

  1. <h:inputHidden value="#{user.id}" id="userId" class="userId-class"></h:inputHidden>  

Output:

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

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.






© Javacodegeeks © 2019 - 2019
All Right Reserved and you agree to have read and accepted our term and condition.

Python 3