[jboss-user] [JBoss Seam] - Re: h:commandLink action method does not execute when using

jtsimikas do-not-reply at jboss.com
Fri Nov 9 10:10:50 EST 2007


Action Bean

  | @Stateful
  | @Name("scsMain")
  | @CacheConfig(idleTimeoutSeconds=3600) /* 60 minutes */ 
  | @Scope(ScopeType.SESSION)
  | 
  | ....
  | 
  | 	public String gotoPage1() {
  | 		return "page1";
  | 	}
  | 	//////////////////////////////////////////////////////////////////////////////
  | 	public String gotoPage2() {
  | 		return "page2";
  | 	}
  | 	//////////////////////////////////////////////////////////////////////////////
  | 	public String gotoPage3() {
  | 		return "page3";
  | 	}
  | 	//////////////////////////////////////////////////////////////////////////////
  | 	public String gotoConvCheckFront() {
  | 		return "pageConvCheckFront";
  | 	}
  | 	//////////////////////////////////////////////////////////////////////////////
  | 	public String gotoConvCheckBack() {
  | 		return "pageConvCheckBack";
  | 	}
  | 	//////////////////////////////////////////////////////////////////////////////
  | 	public String gotoCouponFront() {
  | 		return "pageCouponFront";
  | 	}
  | 	//////////////////////////////////////////////////////////////////////////////
  | 	public String gotoCouponBack() {
  | 		return "pageCouponBack";
  | 	}
  | 	//////////////////////////////////////////////////////////////////////////////
  | 	public String gotoInserts() {
  | 		return "inserts";
  | 	}
  | 	//////////////////////////////////////////////////////////////////////////////
  | 	public String gotoMainPage() {
  | 		return "mainPage";
  | 	}
  | 	public String gotoCriteria() {
  | 		log.info("gotoCriteria()");
  | 		return "gotoCriteria";
  | 	}
  | 	public String gotoOnsertHistory() {
  | 		return "gotoOnsertHistory";
  | 	}
  | 


faces-config.xml

  |    <navigation-rule>        
  |     <from-view-id>/webpages/SCSPhysicalInserts.xhtml</from-view-id> 
  |     
  |     <navigation-case> 
  |       <from-outcome>gotoAttachInserts</from-outcome> 
  |       <to-view-id>/webpages/SCSFileUpload.xhtml</to-view-id> 
  |     </navigation-case> 
  |     
  |     <navigation-case> 
  |       <from-outcome>page1</from-outcome> 
  |       <to-view-id>/webpages/SCSAccountTrans.xhtml</to-view-id> 
  |     </navigation-case> 
  |     
  |     <navigation-case> 
  |       <from-outcome>page2</from-outcome> 
  |       <to-view-id>/webpages/SCSLegalMessagesFront.xhtml</to-view-id> 
  |     </navigation-case> 
  |     
  |     <navigation-case> 
  |       <from-outcome>page3</from-outcome> 
  |       <to-view-id>/webpages/SCSLegalMessagesBack.xhtml</to-view-id> 
  |     </navigation-case> 
  |     
  |     <navigation-case> 
  |       <from-outcome>pageConvCheckFront</from-outcome> 
  |       <to-view-id>/webpages/SCSConvCheckFront.xhtml</to-view-id> 
  |     </navigation-case> 
  |     
  |     <navigation-case> 
  |       <from-outcome>pageConvCheckBack</from-outcome> 
  |       <to-view-id>/webpages/SCSConvCheckBack.xhtml</to-view-id> 
  |     </navigation-case> 
  |     
  |     <navigation-case> 
  |       <from-outcome>pageCouponFront</from-outcome> 
  |       <to-view-id>/webpages/SCSCouponFront.xhtml</to-view-id> 
  |     </navigation-case> 
  |     
  |     <navigation-case> 
  |       <from-outcome>pageCouponBack</from-outcome> 
  |       <to-view-id>/webpages/SCSCouponBack.xhtml</to-view-id> 
  |     </navigation-case> 
  |     
  |     <navigation-case> 
  |       <from-outcome>inserts</from-outcome> 
  |       <to-view-id>/webpages/SCSPhysicalInserts.xhtml</to-view-id> 
  |     </navigation-case> 
  |     
  |     <navigation-case> 
  |       <from-outcome>mainPage</from-outcome> 
  |       <to-view-id>/webpages/SCSMain.xhtml</to-view-id> 
  |     </navigation-case> 
  |     
  |     <navigation-case> 
  |       <from-outcome>gotoCriteria</from-outcome> 
  |       <to-view-id>/webpages/SCSViewCriteriaSets.xhtml</to-view-id> 
  |     </navigation-case> 
  |   </navigation-rule>  
  | 
  | 
  | 

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

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



More information about the jboss-user mailing list