hide character in p:password

UI Components for JSF
Post Reply
saprobionte
Posts: 80
Joined: 20 Jun 2011, 15:46

07 Sep 2011, 10:37

Hi all,

I'm trying to use p:password, and I have a question. When I enter a value, I get little square :

Image

How could I get "circle" or * instead ?

My code :

Code: Select all

<p:password maxlength="32" value="#{loginBean.password}"   
                                                       id="password" required="true" label="password" feedback="false"/>  
I try to add style="font-family:sans-serif;" , but this do not change anything.
PF 3.0RC1 , JSF 2.0, Tomcat 7, NetBeans 7.0

saprobionte
Posts: 80
Joined: 20 Jun 2011, 15:46

08 Sep 2011, 10:54

I finally found the problem ... It is in css, with jquery-ui-1.8.14.custom. I got this line :

.ui-widget { font-family: Lucida Grande, Lucida Sans, Arial, sans-serif; font-size: 0.7em; }

I have a warning "unexpected value token Grande" , so i add '' for font family :

.ui-widget { font-family: 'Lucida Grande, Lucida Sans, Arial', sans-serif; font-size: 0.7em; }

And it works :)
PF 3.0RC1 , JSF 2.0, Tomcat 7, NetBeans 7.0

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests