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

Shane Bryzak sbryzak at redhat.com
Wed Sep 5 21:47:33 EDT 2007


  User: sbryzak2
  Date: 07/09/05 21:47:33

  Modified:    src/main/org/jboss/seam/navigation  Pages.java
  Log:
  JBSEAM-1860
  
  Revision  Changes    Path
  1.16      +16 -0     jboss-seam/src/main/org/jboss/seam/navigation/Pages.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Pages.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/navigation/Pages.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -b -r1.15 -r1.16
  --- Pages.java	3 Sep 2007 15:15:51 -0000	1.15
  +++ Pages.java	6 Sep 2007 01:47:33 -0000	1.16
  @@ -405,6 +405,22 @@
         }
      }
      
  +   /**
  +    * Check if a login redirect is required for the current FacesContext
  +    * 
  +    * @param facesContext The faces context containing the view ID
  +    * @return boolean Returns true if a login redirect is required
  +    */
  +   public boolean isLoginRedirectRequired(FacesContext facesContext)
  +   {
  +      String viewId = getViewId(facesContext);      
  +      for ( Page page: getPageStack(viewId) )
  +      {         
  +         if ( isLoginRedirectRequired(viewId, page) ) return true;
  +      }
  +      return false;
  +   }
  +   
      private boolean isNoConversationRedirectRequired(Page page)
      {
         return page.isConversationRequired() && 
  
  
  



More information about the jboss-cvs-commits mailing list