History | Log In     View a printable version of the current page.  
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 09:39 AM   Updated: 03/Jul/07 08:25 PM
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 09:40 AM Emond Papegaaij 0.9 kb
Environment:
Operating System: other
Platform: Other

Bugzilla Id: http://issues.apache.org/bugzilla/show_bug.cgi?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 - 06/Jun/05 09:40 AM
Created an attachment (id=15306)
Changes ActionErrors to ActionMessages

Niall Pemberton - 30/May/06 04:54 AM
Fixed in revision 410184 - thanks for the patch :-)