This content has been marked as final.
Show 6 replies
-
1. Re: need a solution, commandbutton triggers a session start
hstang May 16, 2007 11:24 PM (in response to liudan2005)Don't use a session?
-
2. Re: need a solution, commandbutton triggers a session start
liudan2005 May 17, 2007 2:44 AM (in response to liudan2005)I've tried changing my component to @Stateless, but it doesn't help. my method is not even invoked.
-
3. Re: need a solution, commandbutton triggers a session start
dilator May 17, 2007 4:42 AM (in response to liudan2005)Can you show the code for your bean + jsf?
-
4. Re: need a solution, commandbutton triggers a session start
liudan2005 May 17, 2007 6:40 AM (in response to liudan2005)my ejb.
@Stateless @Name("myBean") public class MyBean implements MyBeanInterface{ @In(create=true) MyState myState; public String search(){ return doSearch(myState.getSearchString()); } }
my page<h:inputText value="#{myState.searchString}" /> <h:commandButton action="#{myBean.search}" value="Search Now" />
If I open the page and wait until session times out. if I click on "Search Now", myBean.search is not invoked. -
5. Re: need a solution, commandbutton triggers a session start
bulloncito May 17, 2007 12:25 PM (in response to liudan2005)... try
@Begin(join=true) public String search(){ return doSearch(myState.getSearchString()); }
... to get a working conversation, that might get the MyState bean initialized. ... just an idea. -
6. Re: need a solution, commandbutton triggers a session start
liudan2005 May 17, 2007 9:06 PM (in response to liudan2005)No, it doesn't work. @Begin is used for conversation scoped component.