[ http://issues.apache.org/struts/browse/STR-2493?page=all ]
Niall Pemberton resolved STR-2493:
----------------------------------
Fix Version: 1.3.5
Resolution: Fixed
Assign To: Niall Pemberton (was: Struts Developers)
Fixed in revision 410184 - thanks for the patch :-)
> [struts-faces] ErrorsRenderer assumes ActionErrors
> --------------------------------------------------
>
> Key: STR-2493
> URL: http://issues.apache.org/struts/browse/STR-2493
> Project: Struts Action 1
> Type: Bug
> Components: Faces
> Versions: 1.2.4
> Environment: Operating System: other
> Platform: Other
> Reporter: Emond Papegaaij
> Assignee: Niall Pemberton
> Fix For: 1.3.5
> Attachments: errors.patch
>
> The renderer for the <s:errors/> tag assumes that ActionErrors is used, not
> ActionMessages. This will result in a ClassCastException when the following
> code is used in the Action:
> ActionMessages errors = getErrors(request);
> errors.add(ActionMessages.GLOBAL_MESSAGE,
> new ActionMessage("prompt.exception"));
> saveErrors(request, errors);
>
> The attached patch changes ActionErrors to ActionMessages.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira