Issue Details (XML | Word | Printable)

Key: STR-2493
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Niall Pemberton
Reporter: Emond Papegaaij
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Struts 1

[struts-faces] ErrorsRenderer assumes ActionErrors

Created: 06/Jun/05 04:39 PM   Updated: 04/Jul/07 03:25 AM
Component/s: JSF Integration (Dormant)
Affects Version/s: 1.2.4
Fix Version/s: 1.3.5

File Attachments:
  Size
Text File errors.patch 2005-06-06 04:40 PM Emond Papegaaij 0.9 kB
Environment:
Operating System: other
Platform: Other

Bugzilla Id: 35232


 Description  « Hide
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.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Emond Papegaaij added a comment - 06/Jun/05 04:40 PM
Created an attachment (id=15306)
Changes ActionErrors to ActionMessages

Niall Pemberton added a comment - 30/May/06 11:54 AM
Fixed in revision 410184 - thanks for the patch :-)