[Zope3-Users] vary formlib render_submit_button by skin

Aleksander Kowalczyk thealx at poczta.onet.pl
Thu Apr 19 05:20:07 EDT 2007


On 4/19/07, Christian Theune <ct at gocept.com> wrote:
>
> Am Mittwoch, den 18.04.2007, 17:09 -0400 schrieb Fred Drake:
> > On 4/18/07, Leonardo Rochael <leo at enfoldsystems.com> wrote:
> > > I was looking at formlib and I found that If i want to customize
> widgets per
> > > skin, I just have to register their view to a different type, e.g.:
> >
> > As you can for all views.
> >
> > > However I found no such way of customizing the render_submit_button
> adapter
> > > per-skin. All examples I found of the action renderer declarations are
> like
> > ...
> > > Is there any way of specializing the action rendering per-skin? I
> expect
> > > there to be one since it's html generation, which should be skinnable.
> >
> > It should be, but isn't.  :-(  I've run up against this as well, and
> > working around it is more painful than it should be.
>
> Do you consider it a bug? Is it tracked somewhere already?


I think I have similar problem with action renderer: I would like to attach
a javascript handler for my action button.
Unfortunately the renderer seems to not allow to pass any additional
attributes for the html button (like onclick attribute).

Leonardo,
you mentioned about overriding the renderer adapter. This could also solve
my problem, if possible. How to do that?

Regards!
_____________
Alek Kowalczyk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20070419/a31badbb/attachment.htm


More information about the Zope3-users mailing list