-
1. Re: seam conversation
asookazian Aug 14, 2009 5:19 PM (in response to thiagu.m)without seeing your xhtml or pages.xml, it looks fine to me. is the search() method being invoked? if yes, what is the size of the productsList? By default, SFSB is conversation-scoped, so you're ok there.
Also, as per JSR220, a SFSB needs to define a method in the local/remote interface which is annotated with @Remove in the implementation class. I do not see any @Remove in your SFSB above.
-
2. Re: seam conversation
thiagu.m Aug 14, 2009 6:13 PM (in response to thiagu.m)thank u for ur reply
i am invoking the search method from my home page , i am passing the
category
param from the home page, depends on the param i am gettign the list of products in myproductSearch.xhtml
page.this is my link on home page
<s:link action="#{productsearch.search}" propagation="begin" value="Cell Phones ">
<f:param name="category" value="Cell Phones"/>
</s:link>i am forgot to mention the @Remove annotated method in my code.
@Remove @Destroy public void stop() { }
i mention my local interface
ProductsList
implemetation in my previous posting.
i am ok with SFSB is conversation-scoped,
i need to know what are all the objectsproductsList
,productsearch
andselectedProduct
should be live beteen begin and end invokation. -
3. Re: seam conversation
asookazian Aug 15, 2009 1:35 AM (in response to thiagu.m)When you use @Out, Seam outjects to the default scope (unless you specify alternate scope), so in your case it's outjected to conversation scope (which is the default scope for SFSB). Keep in mind that a LRC needs to be active prior to the outjection.
Generally speaking, the instance variables for a conversation-scoped component will be available for the duration of the conversation.
HTH