Primefaces, dataexporter and watermark

流过昼夜 提交于 2020-01-15 07:54:06

问题


i have a dataTable with filtered columns and using watermark to set input value and save some space in header, but when try to use dataExport the pdf file is rendered with some kind of reference from waterMark, like:

Column Title


org.primefaces.component.watermark.Watermark@46339a4c
The desired column content (...)

and the structure of my xhtml is basically:

    <h:form id="formID">

    <p:commandButton value="Export"ajax="false">
        <p:dataExporter type="pdf" fileName="file" preProcessor="#{my.stuff}" target="tableID" />
    </p:commandButton>

    <p:dataTable id="tableID" value="#{my.content}" var="myTable">
        <p:column id="columnID1" filterBy="#{myTable.Item}">
            <p:watermark value="Item" forElement="formID:tableID:columnID1" />
            <p:outputText value=#{myTable.Item}" />
        </p:column>
    </p:dataTable>

</h:form>

Thanks in advance and sorry for the bad english.

来源:https://stackoverflow.com/questions/15166012/primefaces-dataexporter-and-watermark

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!