Google News
logo
JSF - Interview Questions
What is h:inputSecret tag in JSF (JavaServer Faces)?
It is a standard password field which accepts one line of text with no spaces and displays it as a set of asterisks as it is entered. In other words, we say, it is used to create an HTML password field which allows a user to input a string without the actual string appearing in the field.

<h:inputSecret value="#{user.password}" maxlength="15" size="14"   
required="true" requiredMessage="Password is required"></h:inputSecret>​

 

Advertisement