Update of /cvsroot/xdoclet/xdoclet/modules/apache/src/xdoclet/modules/apache/struts/resources In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15848/xdoclet/modules/apache/src/xdoclet/modules/apache/struts/resources
Modified Files: struts_form.xdt Log Message: Fixed XDT-1367: Uninitialized "subform" objects from @struts.form Index: struts_form.xdt =================================================================== RCS file: /cvsroot/xdoclet/xdoclet/modules/apache/src/xdoclet/modules/apache/struts/resources/struts_form.xdt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** struts_form.xdt 26 Mar 2005 18:49:54 -0000 1.2 --- struts_form.xdt 2 Jun 2005 14:00:17 -0000 1.3 *************** *** 11,15 **** { <XDtActionForm:forAllFormFields> ! protected <XDtMethod:methodType/> <XDtMethod:propertyName/>; </XDtActionForm:forAllFormFields> --- 11,15 ---- { <XDtActionForm:forAllFormFields> ! protected <XDtMethod:methodType/> <XDtMethod:propertyName/><XDtMethod:ifHasMethodTag tagName="struts.form-field" paramName="initial">=<XDtMethod:methodTagValue tagName="struts.form-field" paramName="initial"/></XDtMethod:ifHasMethodTag>; </XDtActionForm:forAllFormFields> *************** *** 20,24 **** --- 20,29 ---- <XDtActionForm:forAllFormFields> + <XDtMethod:ifHasMethodTag tagName="struts.form-field" paramName="type"> + public <XDtMethod:methodTagValue tagName="struts.form-field" paramName="type"/> <XDtMethod:getterMethod/>()<XDtMethod:exceptionList/> + </XDtMethod:ifHasMethodTag> + <XDtMethod:ifDoesntHaveMethodTag tagName="struts.form-field" paramName="type"> public <XDtMethod:methodType/> <XDtMethod:getterMethod/>()<XDtMethod:exceptionList/> + </XDtMethod:ifDoesntHaveMethodTag> { return this.<XDtMethod:propertyName/>; *************** *** 37,41 **** --- 42,51 ---- */ + <XDtMethod:ifHasMethodTag tagName="struts.form-field" paramName="type"> + public void <XDtMethod:setterMethod/>( <XDtMethod:methodTagValue tagName="struts.form-field" paramName="type"/> <XDtMethod:propertyName/> ) + </XDtMethod:ifHasMethodTag> + <XDtMethod:ifDoesntHaveMethodTag tagName="struts.form-field" paramName="type"> public void <XDtMethod:setterMethod/>( <XDtMethod:methodType/> <XDtMethod:propertyName/> ) + </XDtMethod:ifDoesntHaveMethodTag> { this.<XDtMethod:propertyName/> = <XDtMethod:propertyName/>; ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel