-
1. Re: Conversation @Begin(join=true) not working properly?
gavin.king Apr 3, 2006 7:40 AM (in response to mirko27)The solution is described here:
http://docs.jboss.com/seam/reference/en/html/conversations.html#d0e2284
We also now have <s:link> in CVS. -
2. Re: Conversation @Begin(join=true) not working properly?
mirko27 Apr 3, 2006 8:17 AM (in response to mirko27)I have looked at that solution. But it`s insane when for example we
have menu that contains 100 links? maybe more?
<h:outputLink value="main.jsf" />
would be replaced to this long script...
<h:outputLink value="main.jsf">
<f:param name="conversationId" value="#{conversation.id}"/>
<h:outputText value="Continue"/>
</h:outputLink>
Searching for solution I did try to find some information for s:link,
but in CVS there`s no documentation, even not API reference... -
3. Re: Conversation @Begin(join=true) not working properly?
gavin.king Apr 3, 2006 8:23 AM (in response to mirko27)I just finished implementing this stuff on the plane yesterday! Give me a break, I will document it when I get a chance...
What you want is:<s:link view="/main.xhtml" value="Continue"/>
You can tune what to do with the conversation by adding propagation="default|none|begin|join|nest|end". -
4. Re: Conversation @Begin(join=true) not working properly?
mirko27 Apr 3, 2006 8:46 AM (in response to mirko27)Sorry Gavin if you did get that impression.
I`m not pushing you, I was amaized to see, that
new stuff is coming so fast.
I was not blaming you, it was other way around.
I thought that I did not notice documentation, but it maybe is there and you
could point to it, if that`s the case. -
5. Re: Conversation @Begin(join=true) not working properly?
mirko27 Apr 3, 2006 9:12 AM (in response to mirko27)I can get right job done with it. But it does not work as expected.
I`ll start a conversation, go to user module. CurrentUser is loaded to conversational context. Now I hit one of the followings:
<s:link view="/haldus/users.xhtml" value="Kasutajad"/>
<s:link view="/haldus/users.xhtml" propagation="end" value="Kasutajad"/>
I`m back to the users page. Seam debug page shows that conversation is killed ( yeah, we love ya for this feature Gavin). But users page still has currentUser entity in context (Seam debug page does not show this).
In next render it`s gone. -
6. Re: Conversation @Begin(join=true) not working properly?
gavin.king Apr 3, 2006 9:17 AM (in response to mirko27)Hmmmmm. Interesting. The current implementation is "kill the conversation at the *end* of the request". Perhaps what people really want is "kill the conversation at the *beginning* of the request.
I have to think this through... -
7. Re: Conversation @Begin(join=true) not working properly?
mirko27 Apr 3, 2006 9:23 AM (in response to mirko27)People think usually this way:
If I click/activate smth(at current time s:link) then it happens momentally.
Btw this works as expected:
<h:outputLink value="users.jsf">
<f:param name="conversationId" value="new"/>
<h:outputText value="Kasutajad"/>
</h:outputLink> -
8. Re: Conversation @Begin(join=true) not working properly?
mirko27 Apr 3, 2006 9:28 AM (in response to mirko27)Sorry, I lied to you.
<h:outputLInk> and <h:commandLink> does not kill the current conversation you wan`t to leave. They just step out of it. -
9. Re: Conversation @Begin(join=true) not working properly?
mars1412 Feb 15, 2008 9:59 AM (in response to mirko27)"gavin.king@jboss.com" wrote:
Hmmmmm. Interesting. The current implementation is "kill the conversation at the *end* of the request". Perhaps what people really want is "kill the conversation at the *beginning* of the request.
I have to think this through...
still thinking?