[jboss-user] [JBoss Seam] - Begin / end conversation on the same view-id/page

jbuechel do-not-reply at jboss.com
Wed Oct 31 03:54:37 EDT 2007


I need to end a previous conversation and start a new one on the same page.

For a quick fix i implemented a page (pre.xhtml) with a button in it for beginning the conversation.

pre.page.xml:
<?xml version="1.0" encoding="UTF-8"?>
  | <page xmlns="http://jboss.com/products/seam/pages"
  | 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  | 	xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.0.xsd">
  | 
  | 	<end-conversation />
  | 
  | 	<navigation>
  | 		<rule if-outcome="enter">
  | 			<begin-conversation flush-mode="manual" />
  | 			<redirect view-id="/modules/queryCatalog/catalog/main.xhtml" />
  | 		</rule>
  | 	</navigation>
  | 
  | </page>
  | 

pre.xhtml:
		<rich:panel id="queryTreeContainerId" styleClass="fwc-panel-noborder">
  | 			<h:form>
  | 				<h:commandButton value="Enter" action="enter" />
  | 			</h:form>
  | 		</rich:panel>
  | 

main.page.xml:
<?xml version="1.0" encoding="UTF-8"?>
  | <page xmlns="http://jboss.com/products/seam/pages"
  | 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  | 	xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.0.xsd"
  | 	no-conversation-view-id="/modules/queryCatalog/catalog/pre.xhtml"
  | 	conversation-required="true">
  | 
  | </page>
  | 

As in the main.xhtml page has to be displayed a tree with lazy loaded data, the conversation has to be started before the page has been rendered (and not after the user does the first click i.e. expanding a tree node)
... i think.

Can anyone help me with this?


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

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



More information about the jboss-user mailing list