You can easily export generated HTML to PDF with Seam PDF
It uses iText internally, but you do not need to write any iText code.
Create a link that uses the same list you use, iterate over RichTaces data.
<p:table columns="2" headerRows="1" widthPercentage="95" widths="0.5 0.5" spacingBefore="10">
<p:cell backgroundColor="#EEEEEE">#{messages['notes.description']}</p:cell>
<p:cell backgroundColor="#EEEEEE">#{messages['notes.processUserName']}</p:cell>
<ui:repeat var="note" value="#{yourListHere}">
<p:cell>#{note.description}</p:cell>
<p:cell>#{note.processUserName}</p:cell>
</ui:repeat>
</p:table>
Something like that. Remember to wrap everything inside
<p:document xmlns:p="http://jboss.com/products/seam/pdf">
source
share