servlets struts hibernate spring maven java
 

JSF <h:form>Tag



The <h:form> tag represents to an input form. It includes child parts that can contain data which is either displayed to the client or submitted with the form. It can likewise HTML markup to spread out the parts on the page.

JSF <h:form> Tag Declaration

  1. <h:form>  
  2. <!-- form elements -->  
  3. </h:form>  

JSF <h:form> Tag Example:

  1. <h:form id="user-form">  
  2. <h:outputLabel for="username">User Name</h:outputLabel>  
  3. <h:inputText id="username" value="#{user.name}" required="true" requiredMessage="Username is required"/><br/>  
  4. <h:commandButton id="submit-button" value="Submit" action="response.xhtml"/>  
  5. </h:form>  






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

Python 3