[jboss-user] [JBoss Seam] - Understanding conversations
Hoffa
do-not-reply at jboss.com
Wed Aug 23 15:12:59 EDT 2006
hello,
I'm new to seam and I am trying to get conversations to work.
My problem concerns two jsf pages and one bean.
in the 1. jsf page I simply call the bean:
<s:link value="letsgo" action="#{actions.letsGo}"/>
the bean is supposed to be conversational:
| @Scope(CONVERSATION)
| @Name("actions")
| @LoggedIn
| public class Actions implements Serializable{
| ...
|
|
| @Begin()
| public String letsGo() {
| return "showit";
| }
|
|
| public String showItAgain() {
| return "showit";
| }
|
|
|
in my 2. jsf page I call
<s:link value="again" action="#{actions.showItAgain}"/>
so it just redisplays the page, to see if the conversation id changes on redisplay.
the funny thing is, it does change. Each time I hit "again" the conversation id increases.
Now, if I go back to my first jsf and call letsGo again, the conversation id only increases one time and after that it stays the same. I thought this should be the right behaviour from the start??
What am I missing?
thank you!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967084#3967084
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967084
More information about the jboss-user
mailing list