hi, I am having a change password page and user is asked to enter the new password and confrim password.for this m using InputSecret but I want see the text entered in both the fields bcoz I want do comparison if both are same or not? can anyone suggest how to do it?
Thanks Hem Pushap Kaushik
Adam Tkaczyk
Greenhorn
Joined: Nov 29, 2007
Posts: 21
posted
0
I don't catch the problem. There are 3 ways to get entered text from h:inputSecret
1) From the value of this component. If you bind value to the managed-bean property you can read it very easy.
2) From the binding of this component. If you bind all component to managed-bean property, you can invoke getValue() method from InputSecret and read entered text.
3) From the JavaScript
SCJP5
HemPushap Kaushik
Greenhorn
Joined: May 10, 2005
Posts: 8
posted
0
Hi My problem is like m having a change password JSF page and user is allowed to enter the new passowrd and then confirm the new pasword.I m using InputSecret component of JSF for entering the password.now I want compare the 2 entered passwords.Can any one help me know how to do comparsion of text contained int these 2 InputSecret Field?