• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

how to get text value of h:InputSecret

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic