They have saved me a lot of development time (just like xdoclet). I have also been using Nick's xdoclet extension for dynaactionform support <http://www.systemmobile.com/blog/index.php?p=26&c=1> and that spares me the burden of what amounts to writing 2 pojos (plain old java object for the newly initiated). I love it.
Imagine this scenario:
/** * @hibernate.property @struts.dynaform-field * */ public Boolean getApproved() { return approved; }
public void setApproved(Boolean approved) {
this.approved = approved;
}
with this snippet I create a field in the database (via hibernate) and a matching property in my DynaForm. Since Dynas are only defined in the struts-config.xml there is no need to write an ActionForm. I let ant/xdoclet build my project while I sip on hot cocoa. Only sex is better than this to me.
Erik Hatcher wrote:
On Jan 8, 2004, at 10:14 AM, Vincent wrote:
Does your form bean extend from ValidatorForm (or ValidatorActionForm)?
I am using a BaseForm which extends DynaValidatorActionForm, that should be Ok, right?
I had no idea what a DVAF was, but found it here:
<http://jakarta.apache.org/struts/api/org/apache/struts/validator/ DynaValidatorActionForm.html>
And from StrutsValidatorTagsHandler we have this:
if (TypeTagsHandler.isOfType(currentClass, "org.apache.struts.validator.ValidatorForm", TypeTagsHandler.TYPE_HIERARCHY)) {
generate(template);
}
So, no, you won't be ok since DVAF does not extend from ValidatorForm.
Again, I'm perplexed why anyone uses DynaActionForms in the first place, but it seems really bizarre to implement a Java class for something that is supposed to be defined entirely in struts-config.xml. In other words, DynaActionForms suck! :)
Erik
------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
