You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by jh...@apache.org on 2004/06/09 04:38:12 UTC

cvs commit: jakarta-struts/contrib/struts-faces/src/java/org/apache/struts/faces/renderer ErrorsRenderer.java

jholmes     2004/06/08 19:38:12

  Modified:    contrib/struts-faces/src/java/org/apache/struts/faces/renderer
                        ErrorsRenderer.java
  Log:
  Updated to use ActionMessage instead of the now deprecated ActionError.
  This is from the patch in bug 29448.
  
  Revision  Changes    Path
  1.7       +3 -3      jakarta-struts/contrib/struts-faces/src/java/org/apache/struts/faces/renderer/ErrorsRenderer.java
  
  Index: ErrorsRenderer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/struts-faces/src/java/org/apache/struts/faces/renderer/ErrorsRenderer.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ErrorsRenderer.java	8 Mar 2004 02:49:54 -0000	1.6
  +++ ErrorsRenderer.java	9 Jun 2004 02:38:12 -0000	1.7
  @@ -29,8 +29,8 @@
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
   import org.apache.struts.Globals;
  -import org.apache.struts.action.ActionError;
   import org.apache.struts.action.ActionErrors;
  +import org.apache.struts.action.ActionMessage;
   import org.apache.struts.util.MessageResources;
   
   
  @@ -115,7 +115,7 @@
           if (errors != null) {
               Iterator reports = errors.get();
               while (reports.hasNext()) {
  -                ActionError report = (ActionError) reports.next();
  +                ActionMessage report = (ActionMessage) reports.next();
                   if (!headerDone) {
                       writer = context.getResponseWriter();
                       if (headerPresent) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org