Foren

jsf2-registration-portlet expando fields

Anabelle Trinidad, geändert vor 11 Jahren.

jsf2-registration-portlet expando fields

Junior Member Beiträge: 27 Beitrittsdatum: 01.05.12 Neueste Beiträge
Hi there..
Why is it that the email address goes to the favorite color field?
And also I tried to use primefaces "password" but its not working. The value disappear after i type in the password field.
Thanks.
thumbnail
Neil Griffin, geändert vor 11 Jahren.

RE: jsf2-registration-portlet expando fields

Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
Hi Anabelle,

I was able to reproduce the problem regarding the email address appearing in the "Favorite Color" field. I think this only happens in Google Chrome when the "Autofill" feature is on. The reason why Chrome puts the email address there, is because it sees that it is the field immediately before the "password1" field and assumes that it is some type of username/email address type of field. When I moved the emailAddress field from the "Identification" column over to the "Security" column, then Chrome Autofill started working in a smarter way.

I tried to reproduce the problem you mentioned regarding the PrimeFaces password component tag, but it worked fine for me. This is what I used:

<aui:field id="password1" label="#{i18n['password']}">
	<p:password value="#{registrantModelBean.registrant.password1}" required="true" />
	<p:message for="password1" />
</aui:field>
<aui:field id="password2" label="#{i18n['password']}">
	<p:password value="#{registrantModelBean.registrant.password2}" required="true" />
	<p:message for="password2" />
</aui:field>


Neil
Anabelle Trinidad, geändert vor 11 Jahren.

RE: jsf2-registration-portlet expando fields

Junior Member Beiträge: 27 Beitrittsdatum: 01.05.12 Neueste Beiträge
Thanks!
Regarding the primefaces password..it didn't work to me at first bcoz I put an ajax on it..
I also tried to use primefaces captcha but I had an error. emoticon
com.liferay.portlet.ActionRequestImpl cannot be cast to javax.servlet.http.HttpServletRequest
thumbnail
Neil Griffin, geändert vor 11 Jahren.

RE: jsf2-registration-portlet expando fields

Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
Can you also post the Java stacktrace? I looked at the PrimeFaces CaptchaRenderer.decode(FacesContext, UIComponent) method but didn't see any explicit casts to HttpServletRequest.
EDISON ROMERO, geändert vor 11 Jahren.

RE: jsf2-registration-portlet expando fields

New Member Beiträge: 5 Beitrittsdatum: 22.10.12 Neueste Beiträge
Hi i have the captcha problem, com.liferay.portlet.ActionRequestImpl cannot be cast to javax.servlet.http.HttpServletRequest.
Someone could solve ????
thumbnail
Neil Griffin, geändert vor 11 Jahren.

RE: jsf2-registration-portlet expando fields

Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
When you get a chance, please post the stacktrace of the exception.
EDISON ROMERO, geändert vor 11 Jahren.

RE: jsf2-registration-portlet expando fields

New Member Beiträge: 5 Beitrittsdatum: 22.10.12 Neueste Beiträge
Hi, attached the problem
thumbnail
Neil Griffin, geändert vor 11 Jahren.

RE: jsf2-registration-portlet expando fields

Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
The stacktrace indicates that this is a Servlet-API dependency bug in the PrimeFaces p:captcha component.

For more info, see PrimeFaces Issue#4844.

As a workaround, you can use liferay-ui:captcha

I would recommend that you look at the jsf2-registration-portlet for an example of how to use it.
EDISON ROMERO, geändert vor 11 Jahren.

RE: jsf2-registration-portlet expando fields

New Member Beiträge: 5 Beitrittsdatum: 22.10.12 Neueste Beiträge
Thanks for your help, I going to take your advice