[jboss-user] [JBoss Seam] - can I join a session with a conversation?

mnrz do-not-reply at jboss.com
Sat May 5 03:40:49 EDT 2007


hello

I have some beans in one conversation (or rather some pages) but I want to use another page which is in session scope and then back to last conversation and resume the job but when I enter the session scope page after pressing the button to go back it throws exception and tell me the conversation has been ended.

is this possible? or I missed something to resolve that.

here is my pages.xml:
setting.xhtml is the page in session scope:

  | <pages>
  | 	<page view-id="/pages/main/searchQuery.xhtml" >
  | 		<navigation from-action="#{indexSearch.search}"> 
  | 			<rule if-outcome="resultQuery">
  | 				<begin-conversation join="true" />
  | 				<redirect view-id="/pages/main/resultQuery.xhtml" />
  | 			</rule>
  | 		</navigation>
  | 	</page>
  | 	
  | 	<page view-id="/pages/main/setting.xhtml"  >
  | 		<navigation from-action="#{userSetting.continueNextPage}"> 
  | 			<rule if-outcome="nextPage">
  | 				<redirect view-id="/pages/main/resultQuery.xhtml" />
  | 			</rule>
  | 		</navigation>
  | 		<navigation from-action="#{userSetting.apply}"> 
  | 			<rule if-outcome="resultQuery">
  | 				<redirect view-id="/pages/main/resultQuery.xhtml" />
  | 			</rule>
  | 		</navigation>
  | 	</page>
  | 
  | 	<page view-id="/pages/main/resultQuery.xhtml" conversation-required="true"
  | 			no-conversation-view-id="/pages/main/searchQuery.xhtml">
  | 		<navigation from-action="#{searchResult.back}">
  | 			<rule if-outcome="back">
  | 				<end-conversation/>
  | 				<render view-id="/pages/main/searchQuery.xhtml" />
  | 			</rule>		
  | 		</navigation>
  | 		<navigation from-action="#{searchResult.setting}">
  | 			<rule if-outcome="setting">
  | 				<redirect view-id="/pages/main/setting.xhtml" />
  | 			</rule>		
  | 		</navigation>
  | 	</page>
  | 
  | 	<page view-id="/login.xhtml">
  | 		<navigation from-action="#{identity.login}">
  | 			<rule if-outcome="success">
  | 				<redirect view-id="/resultQuery.xhtml"/>
  | 			</rule>
  | 		</navigation>
  | 	</page>
  | </pages>
  | 

thank you very much

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

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



More information about the jboss-user mailing list