Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training

JSF inputHidden Tag

This section describes the inputHidden JSF tag. This tag is used to create the field that is invisible to the user.


JSF Tutorials: Easy steps to learn JSF Java Server Faces (JSF) Tutorials What is JSF Mojarra? JSF Life Cycle JSF Examples JSF Tutorial For Beginners Roseindia JSF Tutorial JSF core Tag Reference JSF internationalization example Tomahawk selectOneCountry tag RCFaces About Hibernate, Spring and JSF Integration Tutorial Creating Login Page In JSF using NetBeans JSF Hello World Declaring the Bean class in the faces-config.xml file Creating a Web Application with the JSF Framework Binding the Form Elements With the Bean Properties Adding Navigation in JSF Application Binding Component Instance to a Bean Property Tomahawk validateEqual tag Tomahawk validateEmail tag Tomahawk validateCreditCard tag Tomahawk selectOneListbox tag Tomahawk selectManyListbox tag Tomahawk selectManyCheckbox tag Tomahawk selectBooleanCheckbox tag Tomahawk saveState tag Tomahawk popup tag Tomahawk inputCalendar tag Tomahawk htmlTag tag Tomahawk graphicImage tag Tomahawk documentHead tag Tomahawk documentBody tag Tomahawk document tag Tomahawk column tag DataBase Connectivity with MySql in Visual Web JSF Application Using Net Beans IDE Retrieve Image in JSF From MySQL Table Using NetBeans IDE JSF Training Java Sever Faces 1.2 - JSF 1.2 Display Data from Database in JSF Application Business Objects of Business Logic tier Setup MySQL Database Working with Database through JDBC Working with JavaScript & CSS Referencing a Localized Message Referencing Resource Bundle from a Page Binding Component Value to an Implicit Object Phase Listener Value Change Event Listener Action Event Listener

JSF inputHidden Tag


This section describes the inputHidden JSF tag. This tag is used to create the field that is invisible to the user. This is the field that is used to pass the variables from one page to another. It renders the html input element with the type attribute set to "hidden".

Code Description :

<%@ taglib uri="" prefix="h"%>
<%@ taglib uri="" prefix="f"%>

   <h:inputHidden id="ih" value="hv"></h:inputHidden>

Rendered Output :

There is no rendered output for this tag . This gives invisible element as an output.

Html Scorce Code :

   <form id="_id0" method="post" action="/inputHidden/inputHidden.jsf"   enctype="application/x-www-form-urlencoded"><br>
<input id="_id0:ih" type="hidden" name="_id0:ih" value="hv" />
<input type="hidden" name="_id0" value="_id0" />

There is a list of all attributes that can be used in this inputHidden tag:

  • id : This is set to uniquely identify the component. So this must be the unique value within the closest container.
  • value : This is the current value of the component.
  • binding : This is used to set the binding expression that is used to link the component to the backing bean's property.
  • rendered : This is the boolean attribute that is set to describe that this component should be rendered or not at the time of render response  phase.
  • required : This is the boolean attribute. User is required to provide the value for the field or not  at the time of  submission of the form is indicated by this attribute.
  • validator : It takes a method binding expression that represents validator method. This method is called to validate the value of the component.
  • immediate : This is the boolean attribute. This is used to ensure that the events should be sent to the associated listener immediately. It should not be sent after validation phase.
  • converter : It is used to register the converter instance to the component.
  • valueChangeListener : It takes the method binding expression that notifies the value change listener method. It notifies this method when value is changed and new value is set for this component.


Share on Google+Share on Google+

JSF inputHidden Tag

Posted on: May 30, 2007 If you enjoyed this post then why not add us on Google+? Add us to your Circles



Discuss: JSF inputHidden Tag   View All Comments

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
June 13, 2013

A little rationality lifts the quailty of the debate here. Thanks for contributing!