Pessoal, estou testando o novo componente do prime, para exportar os dados de um datatable, porem esta dando erro abaixo:
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: org/apache/poi/ss/usermodel/RichTextString
root cause
java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/RichTextString
root cause
java.lang.ClassNotFoundException: org.apache.poi.ss.usermodel.RichTextString not found by org.primefaces [277]
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.1.2.2 logs.
Obs. tentei baixar o jar primefaces-3.0.RC1-SNAPSHOT, mesmo assim esta dando problema
seque abaixo a rotina :
<p:dataTable id="datatablemonitorguias" value="#{monitorMbean.tmpguiasList}" var="tmpguiasList" emptyMessage="Nenhum registro encontrado."
paginator="true" rows="10" pageLinks="10"
paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks}
{NextPageLink} {LastPageLink} Registros por página: {RowsPerPageDropdown}"
rowsPerPageTemplate="5,10,15,20" lazy="true" style="width: 100%">
<p:column
rendered="#{monitorMbean.chkmesref}"
headerText="Dt. Ini"
style="width:2%; font-size:8px;font-family:arial,Tahoma,Sans-serif; text-align: center;"
>
<h:outputText value="#{tmpguiasList.mesref}"
>
<f:convertDateTime pattern="dd/MM/yyyy"/>
</h:outputText>
</p:column>
<p:column
headerText="Cod. Prest"
style="width:96%; font-size:8px;font-family:arial,Tahoma,Sans-serif; text-align: center;"
>
<h:outputText value="#{tmpguiasList.valtxintmaq}" converter="conversorCasasDecimaisSimples">
</h:outputText>
</p:column>
<p:column
headerText="Cod. Prest"
style="width:96%; font-size:8px;font-family:arial,Tahoma,Sans-serif; text-align: center;"
>
<h:outputText value="#{tmpguiasList.valtxintfilme}" converter="conversorCasasDecimaisSimples">
</h:outputText>
</p:column>
<p:column
headerText="Cod. Prest"
style="width:96%; font-size:8px;font-family:arial,Tahoma,Sans-serif; text-align: center;"
>
<h:outputText value="#{tmpguiasList.valfator}" converter="conversorCasasDecimaisSimples">
</h:outputText>
</p:column>
</p:dataTable>
<h:panelGrid columns="2">
<p:panel header="Export All Data">
<h:commandLink>
<p:graphicImage value="../resources/images/avisos.png" />
<p:dataExporter type="xls" target="datatablemonitorguias" fileName="datatablemonitorguias" />
</h:commandLink>
</p:panel>
</h:panelGrid>