[jboss-cvs] jboss-seam/examples/seamspace/resources/WEB-INF ...

Gavin King gavin.king at jboss.com
Sun Feb 4 01:31:50 EST 2007


  User: gavin   
  Date: 07/02/04 01:31:50

  Modified:    examples/seamspace/resources/WEB-INF   pages.xml
  Removed:     examples/seamspace/resources/WEB-INF   exceptions.xml
  Log:
  JBSEAM-752
  
  Revision  Changes    Path
  1.17      +17 -0     jboss-seam/examples/seamspace/resources/WEB-INF/pages.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: pages.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/resources/WEB-INF/pages.xml,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -b -r1.16 -r1.17
  --- pages.xml	31 Jan 2007 02:56:00 -0000	1.16
  +++ pages.xml	4 Feb 2007 06:31:50 -0000	1.17
  @@ -41,6 +41,7 @@
       </page>    
       
       <page view-id="/createBlog.xhtml">
  +      <restrict>#{identity.loggedIn}</restrict>
         <navigation from-action="#{blog.saveEntry}">
           <redirect view-id="/blog.xhtml"/>
         </navigation>
  @@ -57,6 +58,7 @@
       </page>
       
       <page view-id="/friendcomment.xhtml">
  +      <restrict>#{identity.loggedIn}</restrict>
         <navigation from-action="#{friend.saveComment}">        
           <redirect view-id="/profile.xhtml">
             <param name="name" value="#{friendComment.member.memberName}"/>
  @@ -65,6 +67,7 @@
       </page>
       
       <page view-id="/friendrequest.xhtml">
  +      <restrict>#{identity.loggedIn}</restrict>
         <navigation from-action="#{friend.saveRequest}">
           <redirect view-id="/profile.xhtml">
             <param name="name" value="#{friendRequest.member.memberName}"/>
  @@ -86,5 +89,19 @@
           </navigation>
       </page>
       
  +    <exception class="org.jboss.seam.security.NotLoggedInException">
  +        <redirect view-id="/register.xhtml">
  +            <faces-message>You must be a member to use this feature</faces-message>
  +        </redirect>
  +        <end-conversation/>
  +    </exception>
  +  
  +    <exception class="org.jboss.seam.security.AuthorizationException">
  +        <redirect view-id="/security_error.xhtml">
  +            <faces-message>You do not have permission to do this</faces-message>
  +        </redirect>
  +        <end-conversation/>
  +    </exception>
  +
   
   </pages>
  \ No newline at end of file
  
  
  



More information about the jboss-cvs-commits mailing list