The idea of starting with a new conversation every time the user selects a new 
sidebar menu item (e.g. User Management, Add new Issue ...) is very important 
to me. What I have been doing is just joining the conversation every time the 
user selects a new sidebar item. This however left a lot of things in the 
conversation which was not needed ... resulting in a lot of resource wasting.

What I am going to do is use Gavin's suggestion of not propagating the 
conversation context<h:commandLink action="main" value="User Management">
  |     <f:param name="conversationId" value="new"/>
  | </h:commandLink>

This does start a new conversation when the user selects a different sidebar 
item. Unfortunately it leaves a lot of "stale" conversations in the session 
(one for each time the user selected a different sidebar item).  Ultimately 
leading to the same resouce wasting issue. This is expted as the documentation 
clearly highlights the issue.
 Note that disabling conversation context propagation is absolutely not the 
same thing as ending the conversation.

What would really be good for me is to have some thing to kill all the 
conversations when the link is clicked, and then starting a new conversation 
with an @Begin

something like<h:commandLink action="main" value="User Management">
  |     <f:param name="conversationId" value="killAll"/>
  | </h:commandLink>

where killAll is a "magic" keyword for the interceptor. Alternatively extend 
the @Begin with an option specifying that all other conversations should be 
killed.

  | @Begin(otherConversationsState="killAll")
  | public String startFresh()
  | 

Obviously if we have access to something through the API one can do something 
like

  | @Begin
  | public String startFresh()
  | {
  | conversation.killAllOthers();
  | ....
  | 

Anyway, my rambling thoughts ;-)

Louis

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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to