how to apply skining of p:inputText to h:inputSecret

UI Components for JSF
Post Reply
mbauer77
Posts: 66
Joined: 04 Jan 2010, 14:41
Location: Munich, Germany
Contact:

02 Feb 2011, 20:28

Hi,

PF 2.2-SNAPSHOT on Mojarra 2.0.4

For a new application i use p:inputText instead of h:inputText because of the nice skinning.
But there is also a user registration page containing p:password and because it is quite common a field where the user needs to repeat his password. Because I already show him the password strength, I do not want to use another p:password-element. So I use a h:inputSecret for the password repetition field - and this one's missing the styling. :(

How can I solve this ?

Is it further planned to provide an alternative to h:selectOneMenu which is skinned like p:inputText ?

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

02 Feb 2011, 20:36

You can use PrimeFaces.skinInput client side api. parameter should be the jquery object of input element.

I think we can solve this easier by adding a feedback attribute to password. When set to false, it will not show password strength, just used as h:inputSecret.

Created;

http://code.google.com/p/primefaces/iss ... il?id=1689

For dropdowns, checkboxes and radios, please see;

http://cagataycivici.wordpress.com/2011 ... -controls/

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

03 Feb 2011, 11:29

Done, if you now set feedback to false, it will behave like a good looking h:inputSecret;

http://code.google.com/p/primefaces/iss ... il?id=1689

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 24 guests