This tag is used to create html input element which has the type "text". It creates input text field where text can be entered.
Code Description :
| <%@ page contentType="text/html" %> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <f:view> <html> <head><title>jsf h:inputText example</title></head> <body> <h:inputText /> </body> </html> </f:view> |
Rendered Output :

Html Source Code :
| <html> <head><title>jsf h:inputText example</title></head> <body> <input type="text" name="_id0" /> </body> </html> |
This tag contains some attributes that are discussed below :
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: JSF inputText tag View All Comments
Post your Comment