Do note that adding the setter to the Struts form is dangerous. This allows the developer to set data to the form, thinking he persists is, while in fact, nothing is persisted.
Mathias -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: woensdag 10 april 2002 9:04 To: [EMAIL PROTECTED] Subject: [Xdoclet-devel] [ xdoclet-Patches-529937 ] Add setData to struts forms Patches item #529937, was opened at 2002-03-14 17:13 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=402706&aid=529937&group_id= 31602 Category: vendor Group: None >Status: Closed Resolution: Fixed Priority: 5 Submitted By: Matt (mpetteys) Assigned to: Vincent Harcq (vharcq) Summary: Add setData to struts forms Initial Comment: Here is a patch to add a setData method to struts forms.. which comes in very handy. Index: struts_form.j ======================================================= ============ RCS file: /cvsroot/xdoclet/xdoclet/core/resources/xdoclet/e jb/vendor/struts_form.j,v retrieving revision 1.9 diff -r1.9 struts_form.j 64a65,72 > > public void setData (<XDtEjbDataObj:dataObjectClass /> dataHolder) > { > <XDtStrutsForm:forAllFormFields> > this.<XDtMethod:setterMethod/> (dataHolder.<XDtMethod:getterMethod/>()); > </XDtStrutsForm:forAllFormFields> > } > *****CVS exited normally with code 1***** ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=402706&aid=529937&group_id= 31602 _______________________________________________ Xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel _______________________________________________ Xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
