dataExporter, export of header text with tooltips
Posted: 11 Mar 2015, 14:20
Hi
I'm running org='org.primefaces' name='primefaces' rev='4.0.8'
I've got a minor problem, in a datatable there are some tooltips on some of the colums. All colums where there is a tooltips, the colum name isn't exported correctly (an id is exported as name: javax.faces.component.UIPanel@1c12709)
This works fine
this here don't
is there a way to show the tooltip and still exporting the correct column name?
btw
I know that i can show the tooltip by using a global tooltip and then use the title="", but how then to show the image icon, which indicates that there is a helptext
regards
Anders
I'm running org='org.primefaces' name='primefaces' rev='4.0.8'
I've got a minor problem, in a datatable there are some tooltips on some of the colums. All colums where there is a tooltips, the colum name isn't exported correctly (an id is exported as name: javax.faces.component.UIPanel@1c12709)
This works fine
Code: Select all
<p:column sortBy="#{nemrResponse.status}" style="width:132px;"
filterBy="#{nemrResponse.status.status}">
<f:facet name="header">
<h:outputText value="#{label['table.status']}" />
</f:facet>
<h:outputText value="#{nemrResponse.status.status}"
style="#{nemrResponse.status.statusCode != 5 ? 'color: red' : ''}" />
</p:column>
Code: Select all
<p:column sortBy="#{nemrResponse.autoSign}" style="width:100px;">
<f:facet name="header">
<h:outputText value="#{label['table.auto']}" />
<p:spacer width="5px" />
<p:graphicImage id="helptext_12"
value="/resources/themes/images/help1.png" />
<p:tooltip for="helptext_12" showEffect="fade"
hideEffect="fade" style="width:380px;">
<div class="tto">
<div class="tti">#{label.helptext_12}</div>
</div>
</p:tooltip>
</f:facet>
<h:outputText value="#{nemrResponse.autoSign == 1 ? 'Ja' : 'Nej'}" />
</p:column>
btw
I know that i can show the tooltip by using a global tooltip and then use the title="", but how then to show the image icon, which indicates that there is a helptext
Code: Select all
<p:tooltip/>
<p:column sortBy="#{nemrResponse.autoSign}" style="width:100px;" >
<f:facet name="header">
<h:outputText value="#{label['table.auto']}" title="#{label.helptext_autoSign}" />
</f:facet>
<h:outputText value="#{nemrResponse.autoSign == 1 ? 'Ja' : 'Nej'}" title="#{nemrResponse.autoSign == 1 ? 'Ja' : 'Nej'}" />
</p:column>
regards
Anders