Export a rich: DataGrid to PDF
pablomaes May 3, 2010 8:28 AMHi,
I have a problem not solved, I have the following DataGrid:
<rich:dataGrid value="#{allMatriculasList.resultList}" var="allMatricula" columns="5" elements="60"> <f:facet name="header"> <s:link styleClass="#{allMatriculasList.getOrderStyle('matResProv', 'arrow-down', 'arrow-up', '')}" value="#{messages['allMatriculas.matResProv.shortLabel']}" style="color:white;"> <f:param name="allMatriculasOrder" value="#{allMatriculasList.getOrderParam('matResProv')}" /> </s:link> </f:facet> <h:panelGrid> <h:outputText value="#{allMatricula.matResProv}#{allMatricula.matResNum}#{allMatricula.matResLet}" /> </h:panelGrid> </rich:dataGrid>
which represents a table with the following format:
Matriculas
---------------
M1 M2 M3
M4 M5 M6
M7 M8 M9
...
now I want to export the same model of representation to PDF, but I can't .. because with a normal iteration ui: repeat like this:
<ui:repeat var="allMatriculas" value="#{allMatriculasList.allResults}" varStatus="aid"> <p:cell borderWidthBottom="1" borderColorBottom="#C0C0C0" paddingTop="1" paddingBottom="5" verticalAlignment="middle" paddingLeft="5" paddingRight="5"> <p:text value="#{allMatriculas.matResProv} #{allMatriculas.matResNum} #{allMatriculas.matResLet} "/> <p:text value="#{aid} "/> </p:cell> </ui:repeat>
what I paint is:
Matriculas
---------------
M1
M2
M3
M4
M5
M6
...
I need some help!!
thanks!