Thanks Ian and Christian for such a quick response :)

The reason to store a form in session is to maintain its state.
Simplest use of this is in repopulating after validation. Now,
validation is taken care by Symfony as a special case, as I saw in the
book.

But, there are several other instances where storing a form in session
is required. Let us say there are 3 tabs on the screen, each with a
form. User populates some data on first tab, and switches to second
tab. This action should submit the first form, but not update it in
the DB. User enters some data in the second tab, and wants to come
back to first tab to again edit some data. This is a very common
requirement...How would we typically do this is Symfony?

Actually, keeping the forms for the full session creates session
bloat. So, this facility should be used with care, and the forms
should be cleaned up once this workflow is done.

I hope you can help further on this...I've refered the book, but didnt
find immediate reference to this kind of requirement...

On Mar 3, 5:58 pm, "Lee Bolding" <[EMAIL PROTECTED]> wrote:
> Symfony handles forms and validation very differently to Struts.
>
> You don't need to create a formbean and a formaction.
>
> Take a look at the forms section in the Symfony 
> manualhttp://www.symfony-project.org/book/1_0/10-Forms
>
> Forms and validation are much simpler in Symfony :)
>
> -----Original Message-----
> From: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED]
>
> On Behalf Of Sumedh
> Sent: 03 March 2008 12:05
> To: symfony users
> Subject: [symfony-users] Putting forms in session
>
> Hi friends,
>
> This might be a little preliminary doubt...
>
> How do I create forms in symfony that stay in session? In struts, once
> needs to mention it in the struts-config.xml...
>
> I looked at the symfony book, but couldnt find it immediately...
>
> May be I need to look again, but if you could help, that'll be really
> quick...
>
> Thanks...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to