I am trying to get to grips with forms as part of an attempt to re- engineer an existing Java webapp using web2py.
I like the ability to generate a form automatically. I especially like the benefit that accepts() gives. However, I can foresee many situations where the auto-generated form is not what I want in terms of layout. I have looked a little at widgets but I don't think that allows the ability to manage the overall form layout. I know that I can use the HTML building objects but I don't want presentation logic in the controller. It seems to me (at the moment) that the ideal would be the ability, when necessary, to design a form manually in a view using html/css but be able to utilise the form.accepts() logic in the controller. I'm tempted to think that this is already possible. If I code: form=SQLFORM(db.recipe) if form.accepts(request.vars,session): whatever... ...I am assuming that this creates a form based on db.recipe and populates the form.vars with request.vars and does the rest (validation, updating db). I just need to ensure that the request.vars names are those expected by the form? Before I spend a lot of time on this am I heading up a dead-end? Bill --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---