[jboss-cvs] jboss-seam/src/main/org/jboss/seam/core ...

Gavin King gavin.king at jboss.com
Wed Dec 13 05:17:10 EST 2006


  User: gavin   
  Date: 06/12/13 05:17:10

  Modified:    src/main/org/jboss/seam/core  Manager.java
  Log:
  JBSEAM-549
  
  Revision  Changes    Path
  1.124     +5 -1      jboss-seam/src/main/org/jboss/seam/core/Manager.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Manager.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/Manager.java,v
  retrieving revision 1.123
  retrieving revision 1.124
  diff -u -b -r1.123 -r1.124
  --- Manager.java	27 Nov 2006 03:09:35 -0000	1.123
  +++ Manager.java	13 Dec 2006 10:17:10 -0000	1.124
  @@ -42,7 +42,7 @@
    *
    * @author Gavin King
    * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
  - * @version $Revision: 1.123 $
  + * @version $Revision: 1.124 $
    */
   @Scope(ScopeType.EVENT)
   @Name("org.jboss.seam.core.manager")
  @@ -916,6 +916,10 @@
       */
      public void redirect(String viewId, Map<String, Object> parameters, boolean includeConversationId)
      {
  +      if ( Lifecycle.getPhaseId()==PhaseId.RENDER_RESPONSE )
  +      {
  +         throw new IllegalStateException("attempted to redirect during RENDER_RESPONSE phase");
  +      }
         FacesContext context = FacesContext.getCurrentInstance();
         String url = context.getApplication().getViewHandler().getActionURL(context, viewId);
         if (parameters!=null) 
  
  
  



More information about the jboss-cvs-commits mailing list