Author: musachy Date: Wed Mar 11 13:12:10 2009 New Revision: 752436 URL: http://svn.apache.org/viewvc?rev=752436&view=rev Log: update datepicker examples
Modified: struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/date-input.jsp Modified: struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/date-input.jsp URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/date-input.jsp?rev=752436&r1=752435&r2=752436&view=diff ============================================================================== --- struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/date-input.jsp (original) +++ struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/date-input.jsp Wed Mar 11 13:12:10 2009 @@ -20,12 +20,12 @@ <s:form id="indexForm" method="post" namespace="/form" action="date" theme="simple"> Tooltip from a Date: <sjx:datepicker name="date" displayFormat="mm dd yy" theme="jquery-simple" readonly="true" imageTooltip="Select a date"/> Read only from a Calendar: <sjx:datepicker name="date1" displayFormat="mm dd yy" theme="jquery-simple" value="%{date}" readonly="true"/> - CSS Style: <sjx:datepicker name="date2" displayFormat="mm dd yy" theme="jquery-simple" value="%{calendar}" cssStyle="background-color:#e5ecf9"/> - CSS Class: <sjx:datepicker name="date3" displayFormat="mm dd yy" theme="jquery-simple" value="%{shortFormat}" cssClass="someClass"/> - Short Format: <sjx:datepicker name="date4" displayFormat="mm dd yy" theme="jquery-simple" value="%{'3/10/09'}"/> - Medium Format: <sjx:datepicker name="date5" displayFormat="mm dd yy" theme="jquery-simple" value="%{'Mar 10, 2009'}" /> - Large Format: <sjx:datepicker name="date6" displayFormat="mm dd yy" theme="jquery-simple" value="%{'March 10, 2009'}" /> - Unparsable Date: <sjx:datepicker name="date7" displayFormat="mm dd yy" theme="jquery-simple" value="%{'Not a Date'}" /> + CSS Style: <sjx:datepicker name="date2" theme="jquery-simple" value="%{calendar}" cssStyle="background-color:#e5ecf9"/> + CSS Class from String Object: <sjx:datepicker name="date3" theme="jquery-simple" value="%{shortFormat}" cssClass="someClass"/> + Short Format: <sjx:datepicker name="date4" theme="jquery-simple" value="%{'3/10/09'}"/> + Medium Format: <sjx:datepicker name="date5" theme="jquery-simple" value="%{'Mar 10, 2009'}" /> + Large Format: <sjx:datepicker name="date6" theme="jquery-simple" value="%{'March 10, 2009'}" /> + Unparsable Date: <sjx:datepicker name="date7" theme="jquery-simple" value="%{'Not a Date'}" /> Options from an inline map:<sjx:datepicker name="date8" theme="jquery-simple" options='{"maxDate" : "+1m"}'/> Options from an object:<sjx:datepicker name="date9" theme="jquery-simple" options="ops"/> No Month or Year dropdown:<sjx:datepicker name="date10" theme="jquery-simple" changeMonth="false" changeYear="false"/>