Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: display tag - urgent

Nick Tucker

2006-12-27

Replies:


Hi Abhimanyu

To change media types columns display in use the media attribute.

for example :-

<display:table name="test" export="true" id="currentRowObject">
  <display:setProperty name="export.rtf.filename" value="example.rtf"/>
  <display:column property="id" title="ID" media="html" />
  <display:column property="email" />
  <display:column property="status" />
  <display:column property="longDescription" media="csv excel xml pdf"
title="Not On HTML" />
  <display:column property="date" />
  <display:column media="html" title="URL">
   <![CDATA[ "]] <c:out value="${currentRowObject.url}"
/><![CDATA[">]]><c:out value="${currentRowObject.url}" /><![CDATA[ ]]>
  </display:column>
  <display:column media="csv excel" title="URL" property="url" />
  <display:setProperty name="export.pdf" value="true" />
</display:table>


The id column will not display in exports, whilst the longDescription will
only display in exported files.

  Nick



Abhimanyu Koul wrote:
>
> Hi!
> I am using export option in my display tag. Everything is going smooth
> but I want to disable one column (display:column) from being exported ie
> displayed in the exported format.
> What is the way out?
>
> Abhimanyu
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.