On second thoughts this is not a very good solution as f:param etc will not work.
A better solution would probably be to subclass UILink and then create a taglib for that, or possibly scan the component tree at the end of the RENDER_RESPONSE phase and for every UILink with propagation="default" set it to none.
I must admit though I am not sure if either of these is a particularly good solution.
Stuart
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092382#4092382
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092382
"marius.oancea" wrote : I;ve build a tree using richfaces and seam. The tree model is saved into a session stateful component.
|
| @Stateful
| @Scope(SESSION)
| @Name("leftTreeBean")
|
|
| I used Extended Persisence Context and all works but it seems that that exteded persistence context does not propagate into DAO objects (Stateless session beans).
|
| If I switch to seam managed persistence tree does not work (i supose because seam managed persistend only work inside conversation - and this cannot be the case because the tree is displayed all the time).
|
| How can I make the dao called from "leftTreeBean" use the same EntityManager?
|
I made the SMPC into a conversation scoped and it works. But I don't know in your case.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092376#4092376
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092376
I was trying to make the UI tier EJB-independent so I could deploy it in regular Tomcats if necessary.
For example, I could have a configuration where I'd have a layer of machines running only tomcat clustered and another clustered layer of JBoss instances.
I know I could inject if I made the actions EJBs, for now I have decided to workaround the issue using the ServiceLocator pattern.
But anyway I posted since I thought this was supposed to work. Or am I wrong? It isnt the way I thought...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092373#4092373
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092373