Hi,
On Wed, 2007-05-02 at 15:07 +0200, Hermann Himmelbauer wrote:
Hi,
I'd like to know how to arrange (e.g. group) widgets in a form with formlib.
One way would be to create a custom template file, where each widget is
placed
via HTML. However, this is quite some work.
I've often done
One way would be to create a custom template file, where each widget is
placed
via HTML. However, this is quite some work.
I've often done this and it doesn't seem like too much work. But I don't
dispute your evaluation.
I've used my own templates as well. It is more work than
On 5/3/07, Maciej Wisniowski [EMAIL PROTECTED] wrote:
AFAIK for textarea html fields you can't set something like
maxlength. You have to use javascript for that.
That's correct; maxlength is for input with type=text or type=password.
-Fred
--
Fred L. Drake, Jr.fdrake at gmail.com
Chaos
On 5/3/07, Darryl Cousins [EMAIL PROTECTED] wrote:
My approach is different to Fred's because I rarely call setUpWidgets in
my form code. I have a bunch of custom widgets in a known place and use
custom_widget. Some widgets are for special fields or needs and some are
as simple as this one. I
Am Donnerstag, 3. Mai 2007 08:57 schrieb Darryl Cousins:
Hi,
On Wed, 2007-05-02 at 15:07 +0200, Hermann Himmelbauer wrote:
Hi,
I'd like to know how to arrange (e.g. group) widgets in a form with
formlib.
One way would be to create a custom template file, where each widget is
placed
On 5/3/07, Hermann Himmelbauer [EMAIL PROTECTED] wrote:
Well, when looking at the template, I roughly have to write this for every
widget:
Another approach is to use a template that uses a view on each widget;
that view can be whatever it needs to be, and let's you have per-field
bits
In my case, I have several forms with e.g. 10-15 fields, so this adds up and
in the end the templates are quite complex. If there were some shortcut or
macro which generates the above HTML-code, it would be a lot easier, perhaps
there's a decent solution? If it would looke something like
Hermann Himmelbauer wrote:
I'd like to know how to arrange (e.g. group) widgets in a form with
formlib.
One way would be to create a custom template file, where each widget is
placed via HTML. However, this is quite some work.
I've often done this and it doesn't seem like too much work. But
Working through Web Component Development with Zope 3 Second Edition, I'm
stuck just at the point it gets more interesting.
In the interactive debug session looking at a basic view, I get a lookup
error at...
view = getMultiAdapter((lasagne, request), name=u'index.html')
I've confirmed that