Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

display tag issue

 
Sam Tom
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had requirement to export to csv file using display tag. It is properly exporting to csv. But problem is it is showing Cell[StaticValue =] in jsp page
I found problem is in following column value in attached code.
<display:column media="html" title="X"/> .

If I remove this column it is showing values that are exported to csv file which I don't want. Can anyone please help.

Attaching jsp page:

<display:table pagesize="1" export="true" requestURI="" width="0%" id="results" defaultsort="2" name="results" decorator="Decorator">
<display:column media="csv" property="xyz" title="XYZ "/>
<display:column media="csv" property="qaw" sortProperty="gawSort" title="PQA"/>

<display:column media="html" title="X"/>
<display:setProperty name="basic.show.header" value="false" />
<display:setProperty name="export.csv.include_header" value="true" />
<display:setProperty name="export.csv.filename" value="xyz.csv" />

<display:setProperty name="paging.banner.first" value="" />
<display:setProperty name="paging.banner.some_items_found" value="" />
<display:setProperty name="paging.banner.one_item_found" value="" />
<display:setProperty name="paging.banner.all_items_found" value="" />
<display:setProperty name="paging.banner.page.selected" value="" />

<display:setProperty name="export.csv" value="true" />
<display:setProperty name="export.excel" value="false" />
<display:setProperty name="export.xml" value="false" />
<display:setProperty name="export.hml" value="false" />
<display:setProperty name="export.banner" value="{0}" />
<display:setProperty name="export.csv.label" value="Begin Download" />
</display:table>

Thanks,
S
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"sxt sxt", please check your private messages for an important administrative matter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic