-
1. Re: Starting a conversation with @Begin problem
laliluna.usenet.laliluna.de Feb 23, 2008 12:50 PM (in response to mail.micke)Hello,
the @Begin is fine and will probably start a conversation. Is the search method actually called?
You may post further details: pages.xml, the link to search, ...
-
2. Re: Starting a conversation with @Begin problem
mail.micke Feb 23, 2008 1:04 PM (in response to mail.micke)Hi Sebastian
The search method is definitely called because, because the result table gets populated with data retrieved by the dao.
I call the search meathod with a simple <h:commandButton action="#{calculationStats.search}" value="Search"/> .
No pages.xml definition or seam ui component for promoting the conversation.
I thought that calling a method with @Begin would start a new conversation without any of the other stuff. I know there are other means of promoting a conversation (pages.xml etc.) but was hoping that I could just use the annotation.
Thanks,
Micke -
3. Re: Starting a conversation with @Begin problem
msystems Feb 23, 2008 1:24 PM (in response to mail.micke)A conversation is not started because search() returns null.
From the reference manual:
Specifies that a long-running conversation begins when this method returns a non-null outcome without exception. -
4. Re: Starting a conversation with @Begin problem
msystems Feb 23, 2008 1:35 PM (in response to mail.micke)BTW: Why not use (will start or join a conversation):
@Begin(join=true) public void search(){ data = calcStatDao.find(type); }
-
5. Re: Starting a conversation with @Begin problem
mail.micke Feb 23, 2008 1:48 PM (in response to mail.micke)Doh! :)
I knew it was something simple like that, and I use join (just didn't write it in the replies).
Many thanks,
Micke