PasswordStrength p:password converter problem

UI Components for JSF
Post Reply
torquatro
Posts: 25
Joined: 06 Aug 2010, 21:58
Contact:

24 Sep 2010, 16:13

Helo,

i try to use <p:p:password with a converter but the converter method never be called.

Could this be a bug?

PS.: I use primefaces 2.2M1
Eclipse June, Tomcat 7, PrimeFaces 3.3.1, Mojarra 2.0.6
Sisagil.com - Agilidade para as melhores empresas

lmmoreira
Posts: 60
Joined: 08 Jul 2010, 14:15

24 Sep 2010, 16:23

Could you post your converter please?

How are you annotating it?
Tomcat 7 + jsf-api - 2.0.3-SNAPSHOT + Primefaces 2.1

torquatro
Posts: 25
Joined: 06 Aug 2010, 21:58
Contact:

24 Sep 2010, 16:33

My password input:

Code: Select all

<p:password minLength="3" value="#{ usuarioBean.senhaNova2 }" required="true"
				converter="#{utilBean.md5converter}" />

And my converter class:

Code: Select all

public class Md5Converter implements Converter {

	public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) {
		return SegurancaUtil.md5(arg2);
	}

	public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) {
		return String.valueOf(arg2);
	}
}

I use el to pass the converter class...

I try to use this with a simple h:inputText and everything work fine.
I think this is a bug.
Eclipse June, Tomcat 7, PrimeFaces 3.3.1, Mojarra 2.0.6
Sisagil.com - Agilidade para as melhores empresas

User avatar
michiel
Posts: 240
Joined: 07 Jun 2010, 09:12
Location: Belgium

24 Sep 2010, 16:36

you should use the ConverterId
e.g.

Code: Select all

@FacesConverter(value = "md5converter")
public class md5Converter  implements Converter {
    ...
}

Code: Select all

<p:password minLength="3" value="#{ usuarioBean.senhaNova2 }" required="true" converter="md5converter" />
Last edited by michiel on 24 Sep 2010, 16:49, edited 1 time in total.
JSF-2.0, mojarra-2.0.2-FCS and PrimeFaces-2.1 on GlassFish v3.0.1 (build 22)

torquatro
Posts: 25
Joined: 06 Aug 2010, 21:58
Contact:

24 Sep 2010, 16:42

Hey michiel,

i try to use with converterId, but the problem persist.

Any other solution?
Eclipse June, Tomcat 7, PrimeFaces 3.3.1, Mojarra 2.0.6
Sisagil.com - Agilidade para as melhores empresas

panduro82
Posts: 3
Joined: 26 Jun 2011, 18:51

22 Sep 2011, 01:06

Hi,

I am having the exact same problem. I have tried several things and none work.

Seeing no reply/solution in over one year I guess it's a non-resolved bug of PrimeFaces.

We would appreciate at least a comment confirming is a bug with no solution.

Rgds,
Juan Diego

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 24 guests