[jboss-user] [JBoss Seam] - Re: how to start new conversation, new nested conversation a

petekol do-not-reply at jboss.com
Thu Jul 20 09:35:58 EDT 2006


the root of the problem i have is

1) why bean2 is created when the page is rendered first time indepandantly from rendered property
2) why click on m1 does not create conversation + nested conversation
3) i do not know how to instanciate new bean2 in nested conversation

bean1:

showBean2 = false;

@Begin(join=true) 
m1() { 
some code here;
showBean2 = true; 
m2(); 
} 

@Begin(nested=true) 
m2() { 
  some code here; 
  create bean2 here that belongs to nested conversation; 
} 

bean2:

@Begin(join=true) 
m3() { 
  some code here;
}


index.xhtml

<h:form>
		<h:commandLink value="m1" action="#{bean1.m1}" class="button" />
</h:form>

<h:form rendered="#{bean1.showBean2}"
		<h:commandLink value="m3" action="#{bean2.m3}" class="button" />
</h:form>

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

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



More information about the jboss-user mailing list