ArticlesTutorialsInterview Questions & AnswersCertificationsFree Books & Sample ChaptersTechnical Discussions  Your Account | Advertise with us | Feedback |
JSF tag reference - h:inputHidden

« h:grapicImage JSF Tag Home h:inputSecret »


  1. Description
  2. Example
  3. Tag Attributes
  4. Code Generator

h:inputHidden Description

h:inputHidden tag is used to include a hidden variable in a page. Hidden form fields are typically used to maintain state information.

  • Use <h:inputHidden> tag to represent a hidden form field.
  • Hidden form fields are not visible in the client’s browser.
  • Hidden form fields are typically used to maintain state information.

h:inputHidden Example

JSF Code HTML Output
<h:inputHidden id="hidden
<input id="myForm:hidden" 
="hiddenValue" />

h:inputHidden Attributes

Attribute Description Type
The unique identifier value for this component. The value must be unique within the closest naming container (e.g.,h:form or f:subview).This value must be a static value.
The value-binding expression linking this component tag to a backing bean property.
A boolean value that indicates whether this component should be rendered.Default value: true.
The current value of this component.
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.
A boolean value that identifies the phase during which action events should fire. During normal event processing, action methods and action listener methods are fired during the "invoke application" phase of request processing. If this attribute is set to "true", these methods are fired instead at the end of the "apply request values" phase.
requiredThe 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.String
validatorA method binding EL expression, accepting FacesContext, UIComponent, and Object parameters, and returning void, that validates the component's local value. A validator method must be a public method that takes FacesContext, UIComponent, and Object parameters, with a return type of void.String
valueChangeListenerThe 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.String
More »» Code Generator
« h:grapicImage JSF Tag Home h:inputSecret »


About Us | Our Mission | Terms of use | Author Terms |    Search        | Contact Us | Advertise With Us | Link to Us | Sitemap
Copyright © 2016 developersBOOK.COM. All rights reserved.