first time i try and add anything to the xdoclet project. not sure where to send this
(and i didn't see any portlet module entries in jira). please let me know if i should post this
somewhere else


Using portlets with struts. turns out that the <portlet-class> value in the portlet.xml file does
not match the class that contains the @portlet.portlet tag.


attached is a 4 line fix to add an optional "portlet-class" attribute. (patch as of CVS today) and
the updated tags.xml file.


henri
Index: modules/portlet/src/xdoclet/modules/portlet/resources/portlet_xml.xdt
===================================================================
RCS file: 
/cvsroot/xdoclet/xdoclet/modules/portlet/src/xdoclet/modules/portlet/resources/portlet_xml.xdt,v
retrieving revision 1.4
diff -r1.4 portlet_xml.xdt
16a17,20
>       <XDtClass:ifHasClassTag tagName="portlet.portlet" 
> paramName="portlet-class">
>       <portlet-class><XDtClass:classTagValue tagName="portlet.portlet" 
> paramName="portlet-class"/></portlet-class>
>       </XDtClass:ifHasClassTag>      
>       <XDtClass:ifDoesntHaveClassTag tagName="portlet.portlet" 
> paramName="portlet-class">
17a22
>       </XDtClass:ifDoesntHaveClassTag>
Index: modules/portlet/src/META-INF/xtags.xml
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/modules/portlet/src/META-INF/xtags.xml,v
retrieving revision 1.2
diff -r1.2 xtags.xml
56a57,65
>         <parameter type="text">
>           <name>portlet-class</name>
>           <usage-description>
>             The class that should be used for the &lt;portlet-class&gt; tag. 
>              Used for struts-based portlets where your Action class is not 
>              directly called by the porlet container.
>           </usage-description>
>           <mandatory>false</mandatory>
>         </parameter>

Reply via email to