It looks like I need to change one line in StrutsValidatorTagsHandler.java in getFields from:
Collection curFields = clazz.getMethods();
to
Collection curFields = clazz.getMethods(true);
So that it picks up superclass methods.
I'll have to try it out to ensure it works, but that seems like it would do the trick. It really should pick up superclass fields, I've just not encountered a situation where I was subclassing form beans yet, so didn't encounter this bug.
Just for my sanity... could you file this as a JIRA bug report so that I can ensure to tackle it. Feel free to assign it to me directly. I'll try to do it today, but I have a way of overcommitting and may not be able to get to it right away.
Erik
Rob Moore wrote:
I'm trying to use the strutsvalidationxml task to produce validation entries
for a form class and its abstract parent which also has validation
attributes specified. However, only the entries for the concrete class are
being generated. Is there any way to change this behavior or is it by
design?
Thanks,
Rob
-------------------------------------------------------
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-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
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-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
