p:password or h:inputSecret

UI Components for JSF
Post Reply
dmunzopa
Posts: 11
Joined: 04 Mar 2011, 12:54
Location: Sevilla - Spain

21 Mar 2011, 18:38

Hi everyone:

I have two questions:
  1. 1) Which Primefaces version the tag p:password have the atribute "feedback" ?
  • 2) I'm using h:inputSecret instead p:password, and in some browser the -> ###### (Values for the input text )
    IE 7.0 -> white squares. (horrible character like an incorrect string value)
    Firefox 3.6.15 -> black circles, normal password type.
    Chrome 10.0 -> Small black circles like "·····".
Does anyone know why this happens?

I'm using JSF-2, Tomcat 6.0. and this config.

Code: Select all

xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.prime.com.tr/ui">
Thanks for your time.

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

21 Mar 2011, 22:32

For 1, PrimeFaces 2.2+ has feedback option.

dmunzopa
Posts: 11
Joined: 04 Mar 2011, 12:54
Location: Sevilla - Spain

22 Mar 2011, 10:17

1) Thanks Optimus for the answer

2) I have found a posible solution.
  • I think the problem is due to a bad character's encoding,the default font-family, with JSF at my project, is "Lucida Grande,Lucida Sans,Arial,sans-serif", and it's posible that in some browsers the character is not valid for those fonts.
The solution that I have used is: Adding a generic font-family style for the <h:inputSecret >. Like style="font-family:sans-serif;"
<h:inputSecret id="j_password"style="font-family:sans-serif;"
label="Password" value="#{loginBean.j_password}"
required="true" />
More info for W3C Fonts http://www.w3.org/TR/CSS2/fonts.html

Anyway, I will try with the <p:inputSecret> too and check If I have the same problem.
Conf: Primefaces 2.2.RC - JSF-2 - Spring 3.0.3 - Hibernate 3.4.0GA.
Server - Eclipse Helios - Apache-tomcat-6.0.29.
Pc: Windows XP/Professinoal.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 45 guests