I have seen many posts about finding the solution of displaying exact length of password data in jsf page.
many people try to use af:inputText with secret=true; but fail and think that this is a bug from oracle.
I don't think this is bug this could be policy to increase security of data.
But If there is a requirement from client to show exact length of secret data what to do know.
I have prepared a simple solution for this.
many people try to use af:inputText with secret=true; but fail and think that this is a bug from oracle.
I don't think this is bug this could be policy to increase security of data.
But If there is a requirement from client to show exact length of secret data what to do know.
I have prepared a simple solution for this.
- create a view object or bean with property named password and type String.
- add this view object in data control.
- create a jsf page.
- add html component input secret like <h:inputSecret id="is1" value="" redisplay="true" immediate="true"/>
- bind value of input secret with view object property by going into page bindings or create a bean and bind with this bean like <h:inputSecret id="is1" value="#{bean.password}" redisplay="true" immediate="true"/>
- redisplay property should be set to true.
- deploy and test