[jboss-cvs] jboss-seam/examples/quartz/view ...
Michael Yuan
michael.yuan at jboss.com
Tue Jun 5 13:02:43 EDT 2007
User: myuan
Date: 07/06/05 13:02:43
Modified: examples/quartz/view search.xhtml
Log:
Cron support in Quartz
Revision Changes Path
1.2 +26 -20 jboss-seam/examples/quartz/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/quartz/view/search.xhtml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- search.xhtml 4 Jun 2007 22:46:26 -0000 1.1
+++ search.xhtml 5 Jun 2007 17:02:42 -0000 1.2
@@ -58,6 +58,7 @@
<th>Payment Amount</th>
<th>Created Date</th>
<th>Scheduled Date</th>
+ <th>Cron</th>
<th>Frequency</th>
<th>Last Paid On</th>
</tr>
@@ -85,6 +86,7 @@
<f:convertDateTime type="date" dateStyle="medium" />
</h:outputText>
</td>
+ <td>#{payment.paymentCron}</td>
<td>#{payment.paymentFrequency}</td>
<td>
<h:outputText value="#{payment.lastPaid}">
@@ -127,9 +129,17 @@
</td>
</tr>
- <tr>
- <td>Frequency:</td>
- <td>
+ </table>
+ </s:validateAll>
+
+ <p><b>Now, choose one of the following repeat payment schemes</b></p>
+ <p>Cron:
+ <h:inputText id="paymentCron" value="#{newPayment.paymentCron}"/><br/>
+ <h:commandButton value="Schedule Cron Job"
+ action="#{paymentHome.saveAndScheduleCron}" />
+ </p>
+
+ <p>Frequency:
<h:selectOneRadio id="radioList"
layout="lineDirection"
value="#{newPayment.paymentFrequency}">
@@ -142,14 +152,10 @@
<ui:remove>
<f:selectItems value="#{newPayment.frequencies}" />
</ui:remove>
- </h:selectOneRadio>
- </td>
- </tr>
- </table>
- </s:validateAll>
-
- <h:commandButton value="Schedule"
+ </h:selectOneRadio><br/>
+ <h:commandButton value="Schedule at Fixed Interval"
action="#{paymentHome.saveAndSchedule}" />
+ </p>
</h:form>
</f:subview>
More information about the jboss-cvs-commits
mailing list