[jboss-cvs] jboss-seam/examples/seampay/view ...
Norman Richards
norman.richards at jboss.com
Sat Oct 21 18:23:45 EDT 2006
User: nrichards
Date: 06/10/21 18:23:45
Modified: examples/seampay/view search.xhtml
Log:
add recurring payments
Revision Changes Path
1.2 +25 -3 jboss-seam/examples/seampay/view/search.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: search.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/seampay/view/search.xhtml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- search.xhtml 20 Oct 2006 16:51:27 -0000 1.1
+++ search.xhtml 21 Oct 2006 22:23:45 -0000 1.2
@@ -36,7 +36,11 @@
</s:link>
</td>
<td>#{account.accountNumber}</td>
- <td>#{account.balance}</td>
+ <td>
+ <h:outputText value="#{account.balance}">
+ <f:convertNumber type="currency" currencySymbol="$"/>
+ </h:outputText>
+ </td>
</tr>
</ui:repeat>
</table>
@@ -47,14 +51,17 @@
<h2>Payments from Account #{accountHome.instance.accountNumber}</h2>
<table>
<tr>
+ <th>Active?</th>
<th>Payee</th>
<th>Payment Amount</th>
<th>Created Date</th>
<th>Scheduled Date</th>
- <th>Paid?</th>
+ <th>Frequency</th>
+ <th>Last Paid On</th>
</tr>
<ui:repeat value="#{accountHome.instance.payments}" var="payment">
<tr>
+ <td>#{payment.active}</td>
<td>#{payment.payee}</td>
<td>
<h:outputText value="#{payment.amount}">
@@ -71,7 +78,12 @@
<f:convertDateTime type="date" dateStyle="medium" />
</h:outputText>
</td>
- <td>#{payment.paid}</td>
+ <td>#{payment.paymentFrequency}</td>
+ <td>
+ <h:outputText value="#{payment.lastPaid}">
+ <f:convertDateTime type="date" dateStyle="medium" />
+ </h:outputText>
+ </td>
</tr>
</ui:repeat>
</table>
@@ -106,6 +118,16 @@
</td>
<td><h:message for="paymentDate" /></td>
</tr>
+
+ <tr>
+ <td>Frequency:</td>
+ <td>
+ <h:selectOneRadio id="radioList" layout="lineDirection"
+ value="#{newPayment.paymentFrequency}">
+ <f:selectItems value="#{newPayment.frequencies}" />
+ </h:selectOneRadio>
+ </td>
+ </tr>
</table>
</s:validateAll>
More information about the jboss-cvs-commits
mailing list