FW: [Opensource] Is the use of DefaultForm a common/best practice on Expresso projects?
Thompson, Kris
kris.thompson at seurat.com
Thu Apr 3 07:11:23 PST 2003
First off, if you use ActionForms do you utilize the validate method? If you how? Do you have a Controller with one state and one form much like how Struts works? What I found is that if you create your own form and assign it in the struts-config.xml file the minute the initial state is called that form's validate method is called (actually it is called before the controller is called) Which that kind of breaks the ability to have a Controller with multiple states. And if you don't utilize the ActionForm's validate method then why are you creating a ActionForm? What functionality are you gaining?
Thanks
Kris
-----Original Message-----
From: Mike Traum [mailto:mtraum at cirnetwork.org]
Sent: Wednesday, April 02, 2003 1:57 PM
To: 'opensource at jcorporate.com'
Subject: RE: [Opensource] Is the use of DefaultForm a common/best practice on Expresso projects?
It doesn't seem as if people are using DefaultForm, but I couldn't tell you for sure.
I think DefaultForm was added to give functionality similar to struts 1.1 DynaForm, which simply allows you to have a ActionForm-like object without having to manually set all of the getters and setters. Being that Struts 1.1 Integration beta is around, you may want to just go with that and try DynaForms.
Regarding ActionForm's in expresso, a think there are at least a few (myself included) who use them within expresso. I find them nice under certain circumstances...
mike
-----Original Message-----
From: Thompson, Kris [mailto:kris.thompson at seurat.com]
Sent: Wednesday, April 02, 2003 10:45 AM
To: opensource at jcorporate.com
Subject: [Opensource] Is the use of DefaultForm a common/best practice on Expresso projects?
I can't seem to find much information on the use of DefaultForm. I have been checking out the javadoc and have found the method Controller.findControllerForm(ControllerRequest) which returns an ActionForm. So are others using DefaultForm or are they using just the ActionForm or are others bypassing the concept all together?
Thanks
Kris Thompson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.jcorporate.com/pipermail/opensource/attachments/20030403/ad5ee37a/attachment-0002.htm
More information about the Opensource
mailing list