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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to