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
PasswordStrength p:password converter problem
Eclipse June, Tomcat 7, PrimeFaces 3.3.1, Mojarra 2.0.6
Sisagil.com - Agilidade para as melhores empresas
Sisagil.com - Agilidade para as melhores empresas
My password input:
And my converter class:
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.
Code: Select all
<p:password minLength="3" value="#{ usuarioBean.senhaNova2 }" required="true"
converter="#{utilBean.md5converter}" />
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
Sisagil.com - Agilidade para as melhores empresas
you should use the ConverterId
e.g.
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)
Hey michiel,
i try to use with converterId, but the problem persist.
Any other solution?
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
Sisagil.com - Agilidade para as melhores empresas
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
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
-
- Information
-
Who is online
Users browsing this forum: No registered users and 24 guests