[jboss-cvs] jboss-seam/examples/pdf/view ...
Norman Richards
norman.richards at jboss.com
Sun Jan 28 22:04:23 EST 2007
User: nrichards
Date: 07/01/28 22:04:23
Modified: examples/pdf/view index.xhtml
Added: examples/pdf/view signature.xhtml
Log:
basic signature example
Revision Changes Path
1.9 +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.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- index.xhtml 24 Jan 2007 23:44:17 -0000 1.8
+++ index.xhtml 29 Jan 2007 03:04:23 -0000 1.9
@@ -34,6 +34,7 @@
<li><s:link view="/table.xhtml" value="Tables" /></li>
<li><s:link view="/nested.xhtml" value="Nested Tables" /></li>
<li><s:link view="/format.xhtml" value="Text conversion and formatting" /></li>
+ <li><s:link view="/signature.xhtml" value="Signed Document" /></li>
</ul>
</body>
</html>
1.1 date: 2007/01/29 03:04:23; author: nrichards; state: Exp;jboss-seam/examples/pdf/view/signature.xhtml
Index: signature.xhtml
===================================================================
<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"
title="Why Seam"
keywords="mykeyword"
subject="seam"
author="Seam Team"
creator="Seam PDF example app">
<p:image alignment="right" wrap="true" resource="/jboss.jpg" />
<p:font size="24"><p:paragraph spacingBefore="16" spacingAfter="40">Order #{currentOrder.orderId} </p:paragraph></p:font>
<p:paragraph>Dear #{currentOrder.customerName},</p:paragraph>
<p:paragraph>
Your order on <p:text value=" #{currentOrder.orderDate}"><f:convertDateTime style="date" format="short" /></p:text> has been processed and will ship shortly. Your order number is #{currentOrder.orderId}. If you have any questions, please see our <p:anchor reference="http://www.jboss.org/index.html?module=bb&op=viewforum&f=231"> support forums</p:anchor>.
</p:paragraph>
<p:table columns="2" width="3 1" widthPercentage="35" horizontalAlignment="right" spacingBefore="40">
<f:facet name="defaultCell">
<p:cell borderWidth="0" horizontalAlignment="right"/>
</f:facet>
<p:cell colspan="2" borderWidth="0" horizontalAlignment="center">
<p:font size="24"><p:paragraph>Order Summary</p:paragraph></p:font>
</p:cell>
<p:cell><p:paragraph>Order Amount:</p:paragraph></p:cell>
<p:cell>
<p:paragraph>
<p:text value="#{currentOrder.baseAmount}">
<f:convertNumber type="currency" currencySymbol="$"/>
</p:text>
</p:paragraph>
</p:cell>
<p:cell><p:paragraph>Tax:</p:paragraph></p:cell>
<p:cell>
<p:paragraph>
<p:text value="#{currentOrder.tax}">
<f:convertNumber type="currency" currencySymbol="$"/>
</p:text>
</p:paragraph>
</p:cell>
<p:cell><p:paragraph>Total Amount:</p:paragraph></p:cell>
<p:cell>
<p:paragraph>
<p:text value="#{currentOrder.totalAmount}">
<f:convertNumber type="currency" currencySymbol="$"/>
</p:text>
</p:paragraph>
</p:cell>
</p:table>
<p:signature field="My Signature"
size="200 200 400 400"
keyStore="pdf.keystore"
keyStorePassword="storepass"
keyPassword="keypass"
keyAlias="pdfKey" />
</p:document>
More information about the jboss-cvs-commits
mailing list