input secret component binding prob

Hello *

My inputSecret component doesnt display the value binded, i.e. when I load in a user I would expect to see "*******".

Is there some configuration I am missing? The password value is definately coming through.

<h:inputSecret id="password" value="#{user.password}" required="true" />

regards. JC.

[339 byte] By [jamesclintona] at [2007-11-26 16:32:51]
# 1
Addredisplay="true"Keep in mind that this might be a security risk. That's why it's disabled by default.
BalusCa at 2007-7-8 22:57:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
What is a better option?Have some "edit" button next to password field if as admin wishes to change it, then display it ?We are using SSL.Thanks
jamesclintona at 2007-7-8 22:57:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Make sure you have written getter and setter for the password filed.
SanjeevGoura at 2007-7-8 22:57:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

> What is a better option?

>

> Have some "edit" button next to password field if as

> admin wishes to change it, then display it ?

>

> We are using SSL.

>

> Thanks

If those forms are accessible by admins only, then just keep it as is. But if you want to respawn the password in for example a login form, then it might be a security risk.

> Make sure you have written getter and setter for the

> password filed.

That's not it .. He will get completely different results otherwise ..

MethodNotFoundException and so on ;)

BalusCa at 2007-7-8 22:57:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
thanks BC, you were spot on (again).
jamesclintona at 2007-7-8 22:57:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...