[jboss-cvs] jboss-seam/examples/pdf/view ...
Norman Richards
norman.richards at jboss.com
Wed Jan 24 18:44:17 EST 2007
User: nrichards
Date: 07/01/24 18:44:17
Modified: examples/pdf/view index.xhtml whyseam.xhtml
Added: examples/pdf/view format.xhtml
Log:
add formatting/converter example
Revision Changes Path
1.8 +1 -1 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.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- index.xhtml 14 Jan 2007 18:15:10 -0000 1.7
+++ index.xhtml 24 Jan 2007 23:44:17 -0000 1.8
@@ -2,7 +2,6 @@
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:s="http://jboss.com/products/seam/taglib"
- xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<head>
@@ -34,6 +33,7 @@
<li><s:link view="/sections.xhtml" value="Sections" /></li>
<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>
</ul>
</body>
</html>
1.8 +1 -1 jboss-seam/examples/pdf/view/whyseam.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: whyseam.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/pdf/view/whyseam.xhtml,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- whyseam.xhtml 24 Jan 2007 06:16:17 -0000 1.7
+++ whyseam.xhtml 24 Jan 2007 23:44:17 -0000 1.8
@@ -1,5 +1,5 @@
<p:document xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://jboss.com/products/seam/pdf"
title="Why Seam"
keywords="mykeyword"
1.1 date: 2007/01/24 23:44:17; author: nrichards; state: Exp;jboss-seam/examples/pdf/view/format.xhtml
Index: format.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:document>
More information about the jboss-cvs-commits
mailing list