Repository: tapestry-5 Updated Branches: refs/heads/master 160ed331d -> 3d0060691
Add new pages to test DateField with client validation disabled Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/98ad28ac Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/98ad28ac Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/98ad28ac Branch: refs/heads/master Commit: 98ad28ac9eb9f4563831275cab3f9a37b56fba68 Parents: 160ed33 Author: Howard M. Lewis Ship <[email protected]> Authored: Fri May 9 11:40:14 2014 -0700 Committer: Howard M. Lewis Ship <[email protected]> Committed: Fri May 9 11:40:14 2014 -0700 ---------------------------------------------------------------------- .../src/test/app1/DateFieldValidationDemo.tml | 18 ++++++++++++++++++ .../app1/pages/DateFieldValidationDemo.groovy | 17 +++++++++++++++++ .../tapestry5/integration/app1/pages/Index.java | 3 +++ 3 files changed, 38 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/98ad28ac/tapestry-core/src/test/app1/DateFieldValidationDemo.tml ---------------------------------------------------------------------- diff --git a/tapestry-core/src/test/app1/DateFieldValidationDemo.tml b/tapestry-core/src/test/app1/DateFieldValidationDemo.tml new file mode 100644 index 0000000..022bc2a --- /dev/null +++ b/tapestry-core/src/test/app1/DateFieldValidationDemo.tml @@ -0,0 +1,18 @@ +<html t:type="Border" + xmlns:t="http://tapestry.apache.org/schema/tapestry_5_4.xsd"> + + <h1>DateField Validation Demo</h1> + + <t:form clientValidation="none"> + <t:errors/> + + <div class="field-group "> + <t:label for="date"/> + <t:datefield t:id="date"/> + </div> + + <input type="submit" value="Go" class="btn btn-primary"/> + + </t:form> + +</html> http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/98ad28ac/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/pages/DateFieldValidationDemo.groovy ---------------------------------------------------------------------- diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/pages/DateFieldValidationDemo.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/pages/DateFieldValidationDemo.groovy new file mode 100644 index 0000000..014d81e --- /dev/null +++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/pages/DateFieldValidationDemo.groovy @@ -0,0 +1,17 @@ +package org.apache.tapestry5.integration.app1.pages + +import org.apache.tapestry5.alerts.AlertManager +import org.apache.tapestry5.annotations.Property +import org.apache.tapestry5.ioc.annotations.Inject + +class DateFieldValidationDemo { + + Date date; + + @Inject + private AlertManager alertManager; + + void onSuccess() { + alertManager.success(String.format("Submitted date as '%s'.", date)); + } +} http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/98ad28ac/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/Index.java ---------------------------------------------------------------------- diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/Index.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/Index.java index b516ef7..009a97d 100644 --- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/Index.java +++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/Index.java @@ -57,6 +57,9 @@ public class Index private static final List<Item> ITEMS = CollectionFactory .newList( + new Item ("DateFieldValidationDemo", "DateField Validation Demo", + "Use of DateField component when client validation is disabled."), + new Item("MixinParameters54", "Strict Mixin Parameters", "In the 5.4 DTD, Parameter Mixins must be qualified with the mixin id."), new Item("AsyncDemo", "Async Links and Forms Demo", "Async (XHR) Updates without a containing Zone."),
