[jboss-user] [JBoss Seam] - I did have the lines: Re: Newbei question: Page navigation

zwu_ca do-not-reply at jboss.com
Thu May 24 13:21:15 EDT 2007


As I said, it did go back to the pag but with Query String cut off. I wanted the origignal link "http://my/itemlist.seam?id=20" instead of "http://my/itemlist.seam?cid=3". PLEASE NOTE the 'cid' is the generic Query Parameter, not my  'id'.

  If I hadn't the two lines, it would have gone back at all.


This is the complete file:

  | <!DOCTYPE pages PUBLIC
  |           "-//JBoss/Seam Pages Configuration DTD 1.2//EN"
  |           "http://jboss.com/products/seam/pages-1.2.dtd">
  | 
  | <pages no-conversation-view-id="/main.xhtml"
  |                  login-view-id="/home.xhtml">
  | 
  |       
  |    <page view-id="/uploadResponse.xhtml">
  |      <param name="pid" value="#{personDao.id}"
  |            converterId="javax.faces.Long"/>
  |     </page>
  |     <page view-id="/register.xhtml">
  |     
  |         <action if="#{validation.failed}"
  |            execute="#{register.invalid}"/>
  |     
  |         <navigation>
  |             <rule if="#{register.registered}">
  |                 <redirect view-id="/home.xhtml"/>
  |             </rule>
  |         </navigation>
  |         
  |     </page>
  | 
  |     <page view-id="/home.xhtml">
  |         
  |         <navigation>
  |             <rule if="#{identity.loggedIn}">
  |                 <redirect view-id="/itemlist.xhtml"/>
  |             </rule>
  |         </navigation>
  |         
  |     </page>
  |     <page view-id="/itemlist.xhtml"  login-required="true" >
  |             <param name="id" value="#{itemlist.me}" />
  |           <navigation from-action="#{hotelBooking.cancel}">
  |             <redirect view-id="/main.xhtml"/>
  |         </navigation>  
  |     </page> 
  |     <page view-id="/password.xhtml"
  |           login-required="true">
  |     
  |         <navigation>
  |             <rule if="#{changePassword.changed}">
  |                 <redirect view-id="/main.xhtml"/>
  |             </rule>
  |         </navigation>
  |         
  |     </page>
  | 
  |     <page view-id="/main.xhtml" 
  |           login-required="true">
  |     
  |         <navigation from-action="#{hotelBooking.selectHotel(hot)}">
  |             <redirect view-id="/hotel.xhtml"/>
  |         </navigation>
  |         
  |         <navigation from-action="#{bookingList.cancel}">
  |             <redirect/>
  |         </navigation>
  |         
  |     </page>
  |     
  | 	<page view-id="/hotel.xhtml">
  |           
  |         <description>View hotel: #{hotel.name}</description>
  |         
  |         <navigation from-action="#{hotelBooking.bookHotel}">
  |             <redirect view-id="/book.xhtml"/>
  |         </navigation>
  |         
  |     </page>
  | 
  | 	<page view-id="/book.xhtml">
  |           
  |         <description>Book hotel: #{hotel.name}</description>
  |         
  |         <navigation from-action="#{hotelBooking.setBookingDetails}">
  |             <rule if="#{hotelBooking.bookingValid}">
  |                 <redirect view-id="/confirm.xhtml"/>
  |             </rule>
  |         </navigation>
  |         
  |     </page>
  | 
  | 	<page view-id="/confirm.xhtml">
  |           
  |         <description>Confirm booking: #{booking.description}</description>
  |         
  |         <navigation from-action="#{hotelBooking.confirm}">
  |             <redirect view-id="/main.xhtml"/>
  |         </navigation>
  |         
  |     </page>
  |     
  |     <page view-id="*">
  |     
  |         <navigation from-action="#{identity.logout}">
  |             <redirect view-id="/home.xhtml"/>
  |         </navigation>
  | 
  |         <navigation from-action="#{hotelBooking.cancel}">
  |             <redirect view-id="/main.xhtml"/>
  |         </navigation>
  |         
  |     </page>
  |     
  |    
  |     <event type="org.jboss.seam.notLoggedIn">
  |     <action expression="#{redirect.captureCurrentView}"/>
  |     </event>
  |     
  | <event type="org.jboss.seam.postAuthenticate">
  |     <action expression="#{redirect.returnToCapturedView}"/>
  | </event>
  | 
  |     <exception class="org.jboss.seam.security.NotLoggedInException">
  |         <redirect view-id="/home.xhtml">
  |             <message severity="warn">You must be logged in to use this feature</message>
  |         </redirect>
  |     </exception>
  | 
  | </pages>
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048417#4048417

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048417



More information about the jboss-user mailing list