aspose file tools
The moose likes JSF and the fly likes how to get text value of h:InputSecret Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "how to get text value of h:InputSecret" Watch "how to get text value of h:InputSecret" New topic
Author

how to get text value of h:InputSecret

HemPushap Kaushik
Greenhorn

Joined: May 10, 2005
Posts: 8
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
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
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?

Thanks
Hem Pushap Kaushik
 
 
subject: how to get text value of h:InputSecret
 
Threads others viewed
how to match two textfields data using validator framework
String Encryption
Password
only upper case in input field
Can I have two inner classes which extends SwingWorker class.
IntelliJ Java IDE