> As you can imagine, this complicated form definitions somewhat, but it
> complicates form rendering and processing considerably, and makes
> arbitrary templates particularly hard, because you have to start
> supporting looping and various other combinations (even nested loops...
> ack!).

Indeed, props to the mad repeating compound fields. Layout... my two cents here
are that FFK has always offered to do too much layout for me. During rough
development, I do make use of the default layout dumps, but for anything
beyond that I've found that I'd much rather use PSP or Cheetah or
your_usual_templating_lib for layout. We're doing this on a large webapp (lots
of repeating compounds here :) in PSP, which is working very nicely as far as
letting designers layout the forms etc, but points to some of the limitations
of a form lib not exposing enough (in this case, particularily with
repeating/compound).

I'd like to see FormEncode (or WebwareForms etc) make everything available as
(getters/properties) for a form, and to expose repeating/compound in a simple
list/named-attribute manner. For complex controls, I'm not sure where you draw
the line; for instance, a MoveUpDownDynamicSelectBox or whatever it was
called, do you give the end user the ability to reposition the buttons etc?
Personally, I would say no, just give them reasonable class names and let CSS
do the heavy lifting there. But for all controls, making (in PSP for example):

<%=field.html%>
<%=field.error%>
<%=field.description%>
and for those who don't care,
<%=field%>

and for repeating/compound:

for field in aGivenField:
  field.subFieldName.html
  field.subFieldName.error
  ...
  field.anotherField.html
  field.anotherField.error
  field.anotherField
  ...

etc (I know FFK has provided most of these in the past, probably FK has too)

This puts the burden of looping etc in the existing layout engines. Now, where
do something like the FFK htFormLayout layouts fit here? They're simply
another  layout system, more specialized (I took the htFormLayout nested list
ideas and made a fairly ugly looping/conditional layout syntax that just used
nested lists/tuples, for example) but still not directly tied to the Forms
system.

Am I missing something, is there a level of form layouts that doesn't fit here?

- Luke


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to