组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Anabelle Trinidad
jsf2-registration-portlet expando fields
2012年5月3日 下午8:23
答复

Anabelle Trinidad

等级: New Member

帖子: 24

加入日期: 2012年4月30日

最近的帖子

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.
附件

附件: ScreenHunter_03 May. 01 15.08.gif (19.9k)
Neil Griffin
RE: jsf2-registration-portlet expando fields
2012年5月4日 上午8:45
答复

Neil Griffin

LIFERAY STAFF

等级: Liferay Legend

帖子: 2337

加入日期: 2005年7月26日

最近的帖子

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:

1<aui:field id="password1" label="#{i18n['password']}">
2    <p:password value="#{registrantModelBean.registrant.password1}" required="true"/>
3    <p:message for="password1" />
4</aui:field>
5<aui:field id="password2" label="#{i18n['password']}">
6    <p:password value="#{registrantModelBean.registrant.password2}" required="true"/>
7    <p:message for="password2" />
8</aui:field>


Neil
Anabelle Trinidad
RE: jsf2-registration-portlet expando fields
2012年5月4日 下午6:20
答复

Anabelle Trinidad

等级: New Member

帖子: 24

加入日期: 2012年4月30日

最近的帖子

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
Neil Griffin
RE: jsf2-registration-portlet expando fields
2012年5月8日 上午7:29
答复

Neil Griffin

LIFERAY STAFF

等级: Liferay Legend

帖子: 2337

加入日期: 2005年7月26日

最近的帖子

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
RE: jsf2-registration-portlet expando fields
2012年10月29日 下午6:03
答复

EDISON ROMERO

等级: New Member

帖子: 5

加入日期: 2012年10月22日

最近的帖子

Hi i have the captcha problem, com.liferay.portlet.ActionRequestImpl cannot be cast to javax.servlet.http.HttpServletRequest.
Someone could solve ????
Neil Griffin
RE: jsf2-registration-portlet expando fields
2012年10月30日 上午10:38
答复

Neil Griffin

LIFERAY STAFF

等级: Liferay Legend

帖子: 2337

加入日期: 2005年7月26日

最近的帖子

When you get a chance, please post the stacktrace of the exception.
EDISON ROMERO
RE: jsf2-registration-portlet expando fields
2012年11月5日 下午2:38
答复

EDISON ROMERO

等级: New Member

帖子: 5

加入日期: 2012年10月22日

最近的帖子

Hi, attached the problem
附件: Error - captcha -primefaces (17.4k)
Neil Griffin
RE: jsf2-registration-portlet expando fields
2012年11月7日 上午11:44
答复

Neil Griffin

LIFERAY STAFF

等级: Liferay Legend

帖子: 2337

加入日期: 2005年7月26日

最近的帖子

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
RE: jsf2-registration-portlet expando fields
2012年11月8日 下午3:50
答复

EDISON ROMERO

等级: New Member

帖子: 5

加入日期: 2012年10月22日

最近的帖子

Thanks for your help, I going to take your advice