DisplayTag decorator problem
Has anyone successfully used one decorator for the html output of displaytag and another one for an export.
This is my code. I have two decorator classes. ProfileTableDecorator and ProfileTableDecoratorExport. I've tried both as the main tables decorator and both work. So my problem is on export it continues to use the tables decorator and not the one I specified to use on export.
Can anyone point me in the correct direction? I've tried using export.csv.decorator instead of export.csv.class, but that did not work.
<displaytag:table name="sessionScope.ProfileViewForm.profileAsList"
decorator="com.sungard.stnweb.decorator.ProfileTableDecorator" export="true">
<displaytag:setProperty name="export.csv.class" value="com.sungard.stnweb.decorator.ProfileTableDecoratorExport"/>
<displaytag:setProperty name="export.xml" value="false"/>
<displaytag:column property="profileName" titleKey="ProfileViewHeader.Name"/>
<displaytag:column property="viewActions" titleKey="ProfileViewHeader.Status"/>
<displaytag:column property="navbarStatus" titleKey="ProfileViewHeader.NavBarStatus"/>
<displaytag:column property="pdfXlsStatus" titleKey="ProfileViewHeader.Pdf-XlsStatus"/>
<displaytag:column property="dynamicHeaderDesStatus" titleKey="ProfileViewHeader.dynamicHeaderDesStatus" media="html"/>
</displaytag:table>

