bruno desthuilliers <[EMAIL PROTECTED]> writes:

> * first thing:
> an interesting feature of Zope is the ability to have multiple submits
> on the same form, with a naming scheme specifying the real action for
> the form, ie:
>  <submit name="handlerMethodName:method" .... />
> will use <current_controller>.handlerMethodName() as handler (ZPublisher
> takes care of this dispatch)
> 
> (err... not sure I'm very clear... sorry)
> 
> This is definitively something I'd like to have in a TG forms/widgets
> framework, and I thinks this could be easily implemented in TG (at least
> with a default() handler doing the dispatch, but there may be better
> options with cherryPy filters or whatever)

How about JavaScript handling 'onclick' events?  It would work the same
way...  What you will call and how will depend just on how creative you are to
write the code :-)

I'm using multiple buttons on some forms and I'm doing this.

> * Next thing is about form layout:
> 
> The TableForm strategy is a first angle, but it will only work for very
> simple forms[1].

IMHO, more complex layouts should be handled at the template, since this is
very specific and very tied to presentation...  The common code should be as
simple as possible to make things fast.


-- 
Jorge Godoy      <[EMAIL PROTECTED]>

Reply via email to