[jboss-cvs] jboss-seam/examples/booking/view ...
Gavin King
gavin.king at jboss.com
Fri Oct 27 21:23:56 EDT 2006
User: gavin
Date: 06/10/27 21:23:56
Modified: examples/booking/view book.xhtml
Log:
a date picker ;)
Revision Changes Path
1.20 +6 -1 jboss-seam/examples/booking/view/book.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: book.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/booking/view/book.xhtml,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- book.xhtml 26 Oct 2006 21:10:41 -0000 1.19
+++ book.xhtml 28 Oct 2006 01:23:56 -0000 1.20
@@ -9,11 +9,12 @@
<!-- content -->
<ui:define name="content">
+<script language="JavaScript" src="js/datePicker.js"/>
<div class="section">
<h1>Book Hotel</h1>
</div>
<div class="section">
- <h:form>
+ <h:form id="booking">
<fieldset>
<div class="entry">
<div class="label">Name:</div>
@@ -47,8 +48,10 @@
<div class="input">
<s:decorate>
<h:inputText id="checkinDate" value="#{booking.checkinDate}" required="true">
+ <f:convertDateTime pattern="MM/dd/yyyy"/>
<a:support event="onblur" reRender="checkinDateErrors"/>
</h:inputText>
+ <h:graphicImage url="img/dtpick.gif" onclick="displayDatePicker('booking:checkinDate');" style="margin-left:5px"/>
<br/>
<a:outputPanel id="checkinDateErrors"><s:message/></a:outputPanel>
</s:decorate>
@@ -60,8 +63,10 @@
<div class="input">
<s:decorate>
<h:inputText id="checkoutDate" value="#{booking.checkoutDate}" required="true">
+ <f:convertDateTime pattern="MM/dd/yyyy"/>
<a:support event="onblur" reRender="checkoutDateErrors"/>
</h:inputText>
+ <h:graphicImage url="img/dtpick.gif" onclick="displayDatePicker('booking:checkoutDate');" style="margin-left:5px"/>
<br/>
<a:outputPanel id="checkoutDateErrors"><s:message/></a:outputPanel>
</s:decorate>
More information about the jboss-cvs-commits
mailing list