[jboss-cvs] jboss-seam/examples/pdf/view ...
Norman Richards
norman.richards at jboss.com
Sun Dec 31 01:51:13 EST 2006
User: nrichards
Date: 06/12/31 01:51:13
Modified: examples/pdf/view index.xhtml table.xhtml
Added: examples/pdf/view nested.xhtml
Log:
add nested tables
Revision Changes Path
1.4 +1 -0 jboss-seam/examples/pdf/view/index.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: index.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/pdf/view/index.xhtml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- index.xhtml 25 Dec 2006 16:28:52 -0000 1.3
+++ index.xhtml 31 Dec 2006 06:51:13 -0000 1.4
@@ -20,6 +20,7 @@
<li><s:link view="/anchor.xhtml" value="Anchors" /></li>
<li><s:link view="/chapters.xhtml" value="Chapters" /></li>
<li><s:link view="/table.xhtml" value="Tables" /></li>
+ <li><s:link view="/nested.xhtml" value="Nested Tables" /></li>
</ul>
</body>
1.3 +6 -6 jboss-seam/examples/pdf/view/table.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: table.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/pdf/view/table.xhtml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- table.xhtml 26 Dec 2006 06:12:57 -0000 1.2
+++ table.xhtml 31 Dec 2006 06:51:13 -0000 1.3
@@ -6,22 +6,22 @@
<p:font size="24"><p:paragraph spacingAfter="50">Table Test</p:paragraph></p:font>
- <p:table columns="4">
- <p:cell colspan="2">cell 1</p:cell>
+ <p:table widths="1 2 2 1" columns="4">
+ <p:cell backgroundColor="yellow" colspan="2">cell 1</p:cell>
<p:cell>cell 2</p:cell>
<p:cell>cell 3</p:cell>
<p:cell>cell 4</p:cell>
- <p:cell colspan="2">cell 5</p:cell>
+ <p:cell backgroundColor="red" colspan="2">cell 5</p:cell>
<p:cell>cell 6</p:cell>
<p:cell>cell 7</p:cell>
<p:cell>cell 8</p:cell>
- <p:cell colspan="2">cell 9</p:cell>
+ <p:cell backgroundColor="blue" colspan="2">cell 9</p:cell>
</p:table>
<p:paragraph spacingBefore="10" spacingAfter="10">This is another table. It should be large enough to span multiple pages with the headers repeated on other page</p:paragraph>
- <p:table columns="2" headerRows="1">
- <p:cell colspan="2"><p:font size="20"><p:paragraph alignment="center">This is a header</p:paragraph></p:font></p:cell>
+ <p:table widths="1 4" columns="2" headerRows="1">
+ <p:cell grayFill=".3" paddingBottom="10" colspan="2"><p:font size="20"><p:paragraph alignment="center">This is a header</p:paragraph></p:font></p:cell>
<ui:repeat value="#{lists.daysOfWeek}" var="day">
<p:cell>#{day}</p:cell>
<p:cell>Blah blah blah</p:cell>
1.1 date: 2006/12/31 06:51:13; author: nrichards; state: Exp;jboss-seam/examples/pdf/view/nested.xhtml
Index: nested.xhtml
===================================================================
<p:document xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://jboss.com/products/seam/pdf">
<p:image alignment="right" wrap="true" resource="jboss.jpg" />
<p:font size="24"><p:paragraph spacingAfter="50">Nested Tables</p:paragraph></p:font>
<p:table spacingBefore="25" columns="1">
<p:cell borderWidthTop=".5f" grayFill=".7">
<p:paragraph alignment="center">Horizontal split using nested tables</p:paragraph>
</p:cell>
<p:cell borderWidthTop="0">one</p:cell>
<p:cell borderWidthTop="0" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0">
<p:table widthPercentage="100" columns="2">
<p:cell borderWidth="0">two</p:cell>
<p:cell borderWidth="0" borderWidthLeft=".5">three</p:cell>
</p:table>
</p:cell>
<p:cell borderWidthTop="0" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0">
<p:table widthPercentage="100" columns="3">
<p:cell borderWidth="0">four</p:cell>
<p:cell borderWidth="0" borderWidthLeft=".5">five</p:cell>
<p:cell borderWidth="0" borderWidthLeft=".5">six</p:cell>
</p:table>
</p:cell>
<p:cell borderWidthTop="0">seven</p:cell>
</p:table>
<p:table spacingBefore="25" columns="2" headerRows="1">
<p:cell borderWidthTop=".5f" colspan="2" grayFill=".7">
<p:paragraph alignment="center">Vertical split using nested tables</p:paragraph>
</p:cell>
<p:cell borderWidthTop="0">one</p:cell>
<p:cell borderWidth="0" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0">
<p:table widthPercentage="100" columns="1">
<p:cell borderWidthTop="0">A</p:cell>
<p:cell borderWidthTop="0">B</p:cell>
</p:table>
</p:cell>
<p:cell borderWidthTop="0">two</p:cell>
<p:cell borderWidth="0" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0">
<p:table widthPercentage="100" columns="1">
<p:cell borderWidthTop="0">C</p:cell>
<p:cell borderWidthTop="0">D</p:cell>
</p:table>
</p:cell>
</p:table>
</p:document>
More information about the jboss-cvs-commits
mailing list