Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to get text value of h:InputSecret

 
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
 
I miss the old days when I would think up a sinister scheme for world domination and you would show a little emotional support. So just look at this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!