[
https://jira.jboss.org/jira/browse/GTNPORTAL-1037?page=com.atlassian.jira...
]
Minh Hoang TO commented on GTNPORTAL-1037:
------------------------------------------
I override the processAction method in UIRegisterForm, to invalidate the Captcha from
session in case the input in the form is not valid (and the code of
SubscribeActionListener is not executed). However, i have not found any way to update a
single UIFormStringInput (which is UICaptcha in our case) yet.
public void processAction(WebuiRequestContext context) throws Exception
{
// TODO Auto-generated method stub
super.processAction(context);
UIApplication uiApp = context.getUIApplication();
UIPopupMessages popupMessages = uiApp.getUIPopupMessages();
if(popupMessages.getWarnings().size() > 0 || popupMessages.getErrors().size()
> 0)
{
//Invalidate the capcha
PortalRequestContext prContext = Util.getPortalRequestContext();
HttpServletRequest request = prContext.getRequest();
HttpSession session = request.getSession();
session.removeAttribute(Captcha.NAME);
}
}
Still keep old text validation in Register New Account form when
change some invalid fields
--------------------------------------------------------------------------------------------
Key: GTNPORTAL-1037
URL:
https://jira.jboss.org/jira/browse/GTNPORTAL-1037
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 3.0.0-GA
Reporter: Hang Nguyen
Assignee: Minh Hoang TO
Fix For: 3.1.0-GA
Attachments: 3.jpg, 4.jpg
Original Estimate: 4 hours
Remaining Estimate: 4 hours
- In public mode:
- Go to Register New Account
- Input some fields requires but input invalid field Email
- Input text validation field
- Click Save
- Show message alert invalid email and Please enter a different address.
- Click OK
- Change valid email
- Click Save
--> Still show old text validation and show message "Text verification isn't
correct "
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira