Hi Matt
I'm actually using formkit with success. I find it just cool as it is.
Maybe the forms look should be a little more customizable (I haven't
tried a lot)
But the result is ok for me.
The problem with formencode, is that I don't want to generate html by
hand. I still haven't found a viable (wydiwyg) html editor solution.
That's why I'm using formkit.
About the automatic sqlobject to form generation, I finally found it not
very useful, as the database schema is often not the same as the form.
Matt Feifarek wrote:
On 3/9/06, *sophana* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Now I'm looking for a method for generating forms.
formkit looks quite good, although not that simple.
Hello Sophana.
I'm one of the authors of FormKit.
The apparent complexity is largely due to the crappiness of HTML, but
we've done a pretty good job (IMHO) of putting a consistent api across
all field types. most of the complexity is under the hood and out of
your hair... again, IMO.
It would be pretty easy to do what you ask -- to make SQLObjects and
FormKit fields more intimately hooked together. You could write a
simple Validator/Convertor that would inspect your database objects to
determine what's required.
Ultimately, there is no free lunch however, eventually you will find
an example of something you need that is not easily "automated" by
such a hack... again, HTML (and especially forms) SUCK. Sooner or
later you'll have a database object that's too complicated for 'smart'
code, and will have to break your own rules...
Ian's approach with FormEncode might be more to your liking... stop
trying to mess with HTML and start worrying just about values.
If you have any specific FK questions, let me know.
Good luck.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss