Note that there are some explanatory texts on larger screens.

plurals
  1. POPrimefaces Dataexport prints <br> tags
    primarykey
    data
    text
    <p>I am exporting data from a p:dataTable into an excel file, and i the data in one of the columns in formatted in a special way using &lt; br > tags.</p> <p>Here is the layout: <a href="http://img560.imageshack.us/img560/9922/descriptionhidden.jpg" rel="nofollow noreferrer">description http://img560.imageshack.us/img560/9922/descriptionhidden.jpg</a></p> <p>The problem is when i export the table, the &lt; br > tags are printed into the excel document like this: </p> <p><a href="http://img705.imageshack.us/img705/7051/exceldeshidden.jpg" rel="nofollow noreferrer">Excel description http://img705.imageshack.us/img705/7051/exceldeshidden.jpg</a></p> <p>The code i am using right now:</p> <pre><code> &lt;p:column sortBy="#{serviceLevel.titleAndDescription}"&gt; &lt;f:facet name="header"&gt;Description: &lt;/f:facet&gt; &lt;h:outputText style="font-weight:bold" value="Title: &amp;lt;br /&amp;gt;" escape = "false"/&gt; &lt;h:outputText value="#{serviceLevel.title} &amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt;" escape = "false"/&gt; &lt;h:outputText style="font-weight:bold" value="Description: &amp;lt;br /&amp;gt;" escape = "false"/&gt; &lt;h:outputText value="#{serviceLevel.description}" /&gt; &lt;/p:column&gt; </code></pre> <p>I have tried to use normal &lt; br > tags between the outputText's which gave the same effect.</p> <p>I have tried to use a &lt; p:spacer > but the exporter doesn't support it :(</p> <p>Any idea's on how i can keep the layout for the user, but not show the html tags in the exported excel document?</p> <p>I am using Primefaces 3.5.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload