Frameworks| Hibernate| Struts| JSF| JavaFX| Ajax| Spring| DOJO| JDO| iBatis| Questions?

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials:
 

Software Solutions and Services
 

 
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments
 
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 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="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<f:view>
  <html>
     <body>
        <h:form><br>
           <h:inputHidden id="ih" value="hv"></h:inputHidden>
        </h:form>
     </body>
  </html>
</f:view>

Rendered Output :

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

Html Scorce Code :

<html>
  <body>
     <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" />
     </form>
  </body>
</html>

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.

                          

» View all related tutorials
Related Tags: c validation com orm form io compare component value attribute id if for to ci e li pe in rm

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

1 comments so far (
post your own) View All Comments Latest 10 Comments:

Hi i used this tag
<h:inputHidden id="inputHidden" value=" "
validator="#{nameBean.validateAccount}"></h:inputHidden>

this method is defined in the bean.But i am getting error message as

Method not found exception for validateAccount.

Posted by Nisha on Wednesday, 11.7.07 @ 19:25pm | #36362

Training Courses
Tell A Friend
Your Friend Name
Website Designing Services
 
Web Designing Packages From $150!
 
Website Designing Company Web Hosting
 
Website Designing Quotation
 
Search Tutorials:

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Flex Development Company in India | Java Training Delhi | Java Training at Noida |

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.