This content has been marked as final.
Show 1 reply
-
1. Re: keeping result of datatable
asookazian Jul 29, 2009 12:50 AM (in response to ajanz)Use conversation scope for you backing bean (typically JavaBean or SFSB).
Use @Begin(join=true) on your action method (or when the page loads in pages.xml) to start a LRC (long-running conversation). In Seam, there is always a temporary conversation but if it is not promoted to a LRC then the component will be destroyed by Seam.
You can test this by adding the following code and a debug brkpt in your IDE:
@Destroy public void destroy() { log.info("in destroy"); //<-- brkpt here! }
Before and after you after you add the @Begin(join=true) annotation.
You will likely need an @End as well on your submit method or equivalent.
Read the Seam ref doc, this is basic conversation mgmt stuff...