Also, keep in mind that using widgets is entirely optional.  If they suit you r problem, great, use them.  Otherwise...don't.

Kevin H.

On 3/26/06, Steve Bergman <[EMAIL PROTECTED]> wrote:

Well, it would be nice if widgets could live outside of form widgets.
Mercifully, I don't have to collaborate with web over-^Wdesigners very
often.  But I do somethimes, and see your point about it taking control
away from the web designers which really should be theirs.

However, when I am my own designer, about the only thing I need beyond
what is already provided in forms is some extra control over field
positioning.

I think the trick is to make the api as simple as possible, but no
simpler, to the extent that it can support 90% of what people want to
do.  For the rest, you can always fall back to straight xhtml in the
template.  Or widgets outside of form widgets if that were available.

BTW, thanks Michele and Nicky.  Actually, I need vertical stacking for
most of the form, but horizontal line up for certain groups of, say,
checkboxes.  I get the idea about subclassing though.      One of these
days thinking in terms of OO/Inheritance will be second nature to me
and I will be a better programmer.  My first language was Apple II
Basic and old ways of thinking die hard.  (This one's taken 25 years so
far. ;-) )

I think I can wait till tomorrow to see what new goodness 0.9a2
provides. :-)

On submit button naming, I need the name in this case.  I have two
SingleSelectFields: 'Client' and 'Project".  Each client has a
different set of projects.  So when 'Client' gets set, I do an
'onchange' _javascript_ submit and have the validation fail if the submit
button's name does not have a value so that I can get the project list
and return to the entry form.  I also have two (visible) submit buttons
so that the user can either submit and return to the browse screen, or
submit and go right back into the entry form for rapid entry of many
records.

There are lots of reasons to want to do away with the default button


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to