Update of /cvsroot/xdoclet/xdoclet/modules/apache/src/xdoclet/modules/apache/struts
In directory sc8-pr-cvs1:/tmp/cvs-serv6588
Modified Files:
StrutsValidatorTagsHandler.java
Log Message:
fixed issue with inheritance... it will now pick up fields from parent hierarchy.
Index: StrutsValidatorTagsHandler.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/modules/apache/src/xdoclet/modules/apache/struts/StrutsValidatorTagsHandler.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** StrutsValidatorTagsHandler.java 8 Sep 2002 01:20:52 -0000 1.3
--- StrutsValidatorTagsHandler.java 13 Dec 2002 20:38:21 -0000 1.4
***************
*** 104,108 ****
* @param props
* @return
! * @doc.tag type="content"
*/
public String argIndex(Properties props)
--- 104,108 ----
* @param props
* @return
! * @doc.tag type="content"
*/
public String argIndex(Properties props)
***************
*** 116,120 ****
* @param props
* @return
! * @doc.tag type="content"
*/
public String argName(Properties props)
--- 116,120 ----
* @param props
* @return
! * @doc.tag type="content"
*/
public String argName(Properties props)
***************
*** 130,134 ****
* @param props
* @return
! * @doc.tag type="content"
*/
public String argValue(Properties props)
--- 130,134 ----
* @param props
* @return
! * @doc.tag type="content"
*/
public String argValue(Properties props)
***************
*** 218,222 ****
* @param attributes
* @throws XDocletException
! * @doc.tag type="block"
*/
public void forAllFields(String template, Properties attributes) throws
XDocletException
--- 218,222 ----
* @param attributes
* @throws XDocletException
! * @doc.tag type="block"
*/
public void forAllFields(String template, Properties attributes) throws
XDocletException
***************
*** 241,245 ****
* @param props
* @return
! * @doc.tag type="content"
*/
public String fieldName(Properties props)
--- 241,245 ----
* @param props
* @return
! * @doc.tag type="content"
*/
public String fieldName(Properties props)
***************
*** 253,257 ****
* @param props
* @return
! * @doc.tag type="content"
*/
public String validatorList(Properties props)
--- 253,257 ----
* @param props
* @return
! * @doc.tag type="content"
*/
public String validatorList(Properties props)
***************
*** 281,286 ****
Map fields = new HashMap();
! Collection curFields = clazz.getMethods();
for (Iterator iterator = curFields.iterator(); iterator.hasNext(); ) {
XMethod setter = (XMethod) iterator.next();
--- 281,290 ----
Map fields = new HashMap();
! Collection curFields = clazz.getMethods(true);
+ // TODO: nested forms currently won't work unless
+ // there is a setter for it, but that is not needed
+ // as only the sub-forms must have setters. The top-level
+ // only requires a getter.
for (Iterator iterator = curFields.iterator(); iterator.hasNext(); ) {
XMethod setter = (XMethod) iterator.next();
-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel