Do you mean two different urls are pointed to one controller class? Because having two controller classes for every form post will result duplicate code (for gathering data and returning template).
I once had a thought that maybe it would be better to store all validation errors in session, and make all posts requests end with redirect back to get request. So the form will need to check for errors in session and then render notes from it. On Jan 24, 11:44 pm, Branko Vukelić <[email protected]> wrote: > Ok, so those are two separate forms, each with it's own validation. > The template that is returned is the same. What's the problem? > > > > > > On Mon, Jan 24, 2011 at 9:42 PM, andrei <[email protected]> wrote: > > Branko, doing your way, how would you display inline validation > > errors? > > > On Jan 24, 10:38 pm, Branko Vukelić <[email protected]> wrote: > >> On Mon, Jan 24, 2011 at 2:35 PM, ilejn <[email protected]> wrote: > >> > Hello! > > >> > What is the best way to put two forms at one Web page? > > >> To me it'd make most sense to just point them to different URLs, and > >> then proceed as usual. > > >> -- > >> Branko Vukelic > > >> [email protected]http://www.brankovukelic.com/ > > > -- > > You received this message because you are subscribed to the Google Groups > > "web.py" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/webpy?hl=en. > > -- > Branko Vukelic > > [email protected]http://www.brankovukelic.com/ -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
