2 Oct 2009 12:33 AM #1
Password filed with constant number of displayed dot
all is in the title
private TextField<String> m_password = new TextField<String>();
I want to know if there is a method that display in the form a constant number of dot in the present field whatever the size of the password
2 Oct 2009 6:00 AM #2
I'm not sure, i was very clear
I have this password field
private TextField<String> m_password ; m_password = new TextField<String>(); m_password.setPassword(true);
So I want to know if it's possible to display in my form a password field with a constant number of dot (8 for example) ?
5 Oct 2009 12:27 AM #3
AFAIK, the html input element cannot do that
you could, however, try to add a change-listener to your passwordfield and whenever it's changed, you remember the input and set your fixed 8 character-pwd to the visible pwd-field.
However, I'd not recommend to do that.
Why is it a problem to show the long input text?
5 Oct 2009 3:09 AM #4
This would be an own implementation. You can capture the key that gets pressed, save it somewhere else and always display your random number of stars in the actual field.