| <?xml version="1.0"?> |
| <!-- |
| Copyright 2004, 2005 The Apache Software Foundation |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <!DOCTYPE page-specification PUBLIC |
| "-//Apache Software Foundation//Tapestry Specification 4.0//EN" |
| "http://tapestry.apache.org/dtd/Tapestry_4_0.dtd"> |
| |
| <page-specification class="org.apache.tapestry.workbench.Dates" > |
| |
| <bean name="delegate" class="org.apache.tapestry.workbench.WorkbenchValidationDelegate" property="delegate"/> |
| |
| <property name="clientValidationEnabled" persist="client" initial-value="true"/> |
| <property name="includeWeek" persist="client"/> |
| <property name="startDate" persist="client"/> |
| <property name="endDate" persist="client"/> |
| |
| <bean name="required" class="org.apache.tapestry.form.validator.Required"></bean> |
| <bean name="maxDate" class="org.apache.tapestry.form.validator.MaxDate"> |
| <set name="maxDate" value="new java.util.Date()"></set> |
| </bean> |
| <bean name="minDate" class="org.apache.tapestry.form.validator.MinDate"> |
| <set name="minDate" value="new java.util.Date()"></set> |
| </bean> |
| |
| <component id="inputEnabled" type="Checkbox"> |
| <binding name="value" value="clientValidationEnabled"/> |
| <binding name="onchange" value="literal:tapestry.form.submit(this.form);"/> |
| </component> |
| |
| <component id="showError" type="form/ShowError"> |
| <binding name="delegate" value="bean:delegate"/> |
| </component> |
| |
| </page-specification> |
| |