[jboss-cvs] jboss-seam/examples/pdf/view ...

Norman Richards norman.richards at jboss.com
Sun Dec 31 19:31:41 EST 2006


  User: nrichards
  Date: 06/12/31 19:31:41

  Modified:    examples/pdf/view   index.xhtml nested.xhtml
  Log:
  use facet for table
  
  Revision  Changes    Path
  1.5       +2 -3      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.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- index.xhtml	31 Dec 2006 06:51:13 -0000	1.4
  +++ index.xhtml	1 Jan 2007 00:31:41 -0000	1.5
  @@ -11,8 +11,8 @@
       <ui:remove><link href="screen.css" rel="stylesheet" type="text/css" /></ui:remove>
   </head>
   <body>
  -      
       <h1>Sample Documents:</h1>
  +
       <ul>
           <li><s:link view="/whyseam.xhtml"   value="Why Seam?" /></li>
           <li><s:link view="/lists.xhtml"     value="PDF Lists" /></li>
  @@ -22,6 +22,5 @@
           <li><s:link view="/table.xhtml"     value="Tables" /></li>
           <li><s:link view="/nested.xhtml"    value="Nested Tables" /></li>
       </ul>
  -    
   </body>
   </html>
  
  
  
  1.2       +15 -9     jboss-seam/examples/pdf/view/nested.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: nested.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/pdf/view/nested.xhtml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- nested.xhtml	31 Dec 2006 06:51:13 -0000	1.1
  +++ nested.xhtml	1 Jan 2007 00:31:41 -0000	1.2
  @@ -1,4 +1,5 @@
   <p:document xmlns:ui="http://java.sun.com/jsf/facelets"
  +            xmlns:f="http://java.sun.com/jsf/core"
               xmlns:p="http://jboss.com/products/seam/pdf">
   
   
  @@ -6,26 +7,33 @@
       <p:font size="24"><p:paragraph spacingAfter="50">Nested Tables</p:paragraph></p:font>  
   
       <p:table spacingBefore="25" columns="1">
  +        <f:facet name="defaultCell">
  +            <p:cell borderWidthTop="0" />
  +        </f:facet>
  +
           <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:cell>one</p:cell>
  +        <p:cell 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:cell 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>
  +                <f:facet name="defaultCell">
  +                    <p:cell borderWidth="0" borderWidthLeft=".5" />
  +                </f:facet>
  +                <p:cell borderWidthLeft="0">four</p:cell>
  +                <p:cell>five</p:cell>
  +                <p:cell>six</p:cell>
               </p:table>
           </p:cell>
  -        <p:cell borderWidthTop="0">seven</p:cell>
  +        <p:cell>seven</p:cell>
       </p:table>
   
       <p:table spacingBefore="25" columns="2" headerRows="1">
  @@ -48,7 +56,5 @@
                   <p:cell borderWidthTop="0">D</p:cell>
               </p:table>
           </p:cell>
  -
       </p:table>
  -
   </p:document>
  
  
  



More information about the jboss-cvs-commits mailing list