This content has been marked as final.
Show 2 replies
-
1. Re: Scope for a single form
joblini Dec 18, 2008 3:46 AM (in response to nbhatia.bhatian.comcast.net)Hi Naresh,
You probably want to create a Seam component, to act as the backing bean, in CONVERSATION scope. Use of SESSION scope for this sort of thing is discouraged.
You can start your conversation in yourpage.xml like this:
<begin-conversation flush-mode="MANUAL" join="true" />
To take full advantage of Seam, you can also add something like this:
<navigation from-action="#{controller.persist}"> <rule> <end-conversation /> <redirect /> </rule> </navigation>
This will avoid the warning about reposting that the browser will pop up if the user refreshes the page, or hits the back button, after successfully submitting the form.
-
2. Re: Scope for a single form
nbhatia.bhatian.comcast.net Dec 18, 2008 6:42 AM (in response to nbhatia.bhatian.comcast.net)Thanks so much you Ingo! Your advice is dead on. My page is now working very smoothly.