I am creating a database setting jsf page which shows the value from the properties file during the page load. The users then updates the page and press submit and the valu
The <h:inputSecret> indeed doesn't redisplay passwords by default due to security reasons. You can however turn it on by setting redisplay="true"
.
<h:inputSecret value="#{bean.password}" redisplay="true" />
See also its TLD document:
redisplay
Flag indicating that any existing value in this field should be rendered when the form is created. Because this is a potential security risk, password values are not displayed by default.
Update:
I Apologize :
The only thing needed to add is
redisplay="true"
as password is not diplayed for security reason