• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to get text value of h:InputSecret  RSS feed

 
HemPushap Kaushik
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
HemPushap Kaushik
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!