Hi Michel -- sorry I've been so slow to look at FEComponent.
I noticed you added in Action. That's something that was built into
FormEncode before, but got lost in the shuffle when form generatino (and
Submit) went away. I think it's probably correct to put it in at this
level instead of directly in FormEncode. It might be better to use
Webware actions instead of another action system, but I don't know if
there's any conflict there. There shouldn't be, really -- components
can add new actions. Though, looking at it, there's no documentation
for this. Anyway, you'd do (in the Component subclass):
_servletMethods = ['submit_action', ...]
def actions(self):
return ['submit_action']
Is there a default action? For instance, when the user hits Enter
without hitting a button, no submit button will be triggered. Is the
first action listed in actionList the default?
It looks like processForm() calls on*Click. So the flow typically goes:
def writeHTML(self):
self.processForm() --> calls on*Click if form is submitted and valid
do stuff to write the form
then in sleepEvent parseDocument loads the page that was written and
rewrites the form with htmlfill.
But anyway, it looks pretty easy to use, and I like parseDocument is
very output-neutral. It would be good to get this in a public
repository. I can't remember if I ever set you up with svn access for
FormEncode? This could also go in svn.w4py.org.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss