[ 
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-93?page=comments#action_17461
 ] 

Toomas Römer commented on XDT-93:
---------------------------------

I have the exact same problem. But then again, jsptaglib does not seem to be 
have this feature. To correctly copy/extract tag attribute information from the 
parent class you need to know the tag info of the parent class. Jsptaglib needs 
to either know about the src of the parent tag (extract the jsptaginfo tags 
from there) or the tld which has the info on the parent tag. 

jsptaglib should:
a) Support additional src folders for generation that does not end up in the 
tld (external src folders so that derivate class get the full jsptag info but 
without the tld info of the external src).
b) Extract the tld from the jar, find the correct attributes of the class and 
write correct info for the extending tag. As this depends the jar containing 
the tld then it is not 100% sound.

Workarounds:
a) Just add the src of the parent class (the jar) to the webdoclet src fileset 
and later u can easily throw away the old via xslt or some other methods.
b) Override the methods for the attributes that you wish to see in your tld ;)

'b' is ugly and 'a' is a fix until jstaglib supports some solution for this 
problem. I'll take a look at the jsptaglib source tonight, i have never read 
xdoclet's source though so it might be more complicated than it sounds.

If i'm missing anything show me the way :)



> [ 605102 ] jsptaglib doesn't like inheritence
> ---------------------------------------------
>
>          Key: XDT-93
>          URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-93
>      Project: XDoclet
>         Type: Bug

>   Components: Web Module
>     Reporter: Konstantin Pribluda
>     Assignee: xdoclet-devel (Use for new issues)

>
>
> import from 
> SF:https://sourceforge.net/tracker/index.php?func=detail&aid=605102&group_id=31602&atid=402704
> Original report:
> jsptaglib will not generate tld info for classes that
> extend classes outside the source path that are not in
> javax.servlet.jsp.tagext.*. If my tags extend any
> struts tags, webdoclet generates a
> ClassNotFoundException even if the class is in the
> classpath defined in the taskdef. I have tags that
> extend classes in my source path which in turn extend
> TagSupport, those work.
> package org.arbfile.web.taglibs.reports;
> public class FilterByTag extends InitObjectBaseTag;
> package org.arbfile.web.taglibs.util;
> public abstract class InitObjectBaseTag extends
> TagSupport implements IParam;
> generates tld info for FilterByTag fine.
> package org.arbfile.web.taglibs.logic;
> public class CollectionDataExistsTag extends
> ConditionalTagBase;
> package org.apache.struts.taglib.logic;
> public abstract class ConditionalTagBase extends
> TagSupport;
> does not generate tld info for CollectionDataExistsTag.
> Adding the appropriate struts libraries to the
> classpath for the webdoclet taskdef does not help.
> ClassNotFoundExceptions are generated for classes that
> appear in the classpath.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to