Steps to follow :
<converter>
|
Use this converter in the view page as :
<h:inputText id="input_text">
|
<converter> <converter-for-class>Email</converter-for-class> <converter-class>EmailConverter</converter-class>
|
If we register the EmailConverter class to handle all Email objects automatically then there is no need to use the <f:converter/> tag in view page. Use this converter as :
<h:inputText id="phone" value="#{Bean.email}">
|
|
Recommend the tutorial |
Ask Questions? Discuss: JSF Interview Questions
Post your Comment