Thanks for the link, Chris! I'll check it. The thing is that in my solution, the template itself gets a little 'dirty'.
cheers, Henk On 9 sep, 01:46, Chris Miles <[email protected]> wrote: > On 08/09/2009, at 5:19 PM, nk wrote: > > > > > > > Hi, > > > I'm very new with pylons and I like it very much (coming from > > grails). But I was wondering what would be the best way to deal with > > this situation : > > I have a form with a date field and a button which creates additional > > date fields using javascript. I also have a select box which gets > > filled using an ajax call. Upon submission, the form fields get > > validated and I'm using htmlfill to render the same page showing the > > errors. Of course, since some of the fields are not in the static > > html template, these are not shown. > > What I do now is add some code to the template which checks for fields > > in c.form_result and creates for every date field the right <input> > > tag. > > Is this the way you guys are solving this too? > > I'd say it is a valid solution if it is working for you. > > Personally, I am using ToscaWidgets and tw.forms to encapsulate form > creation and validation. > > I haven't done much with it yet, but tw.dynforms is an extension of > that to handle dynamic forms such as what you are describing. It might > be worth a look if you are not happy with your current > solution.http://toscawidgets.org/documentation/tw.dynforms/ > > Cheers, > Chris Miles --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
