You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2013/09/10 00:36:18 UTC
git commit: Modify Errors component to never render a body
Updated Branches:
refs/heads/master cfc7351b4 -> 1feb33c44
Modify Errors component to never render a body
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/1feb33c4
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/1feb33c4
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/1feb33c4
Branch: refs/heads/master
Commit: 1feb33c446261851e3f6f3c547b52d915fe141cb
Parents: cfc7351
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Mon Sep 9 15:36:12 2013 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Mon Sep 9 15:36:12 2013 -0700
----------------------------------------------------------------------
.../java/org/apache/tapestry5/corelib/components/Errors.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/1feb33c4/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Errors.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Errors.java b/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Errors.java
index 252262d..b061112 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Errors.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Errors.java
@@ -56,14 +56,14 @@ public class Errors
@Environmental(false)
private ValidationTracker tracker;
- void beginRender(MarkupWriter writer)
+ boolean beginRender(MarkupWriter writer)
{
if (tracker == null)
throw new RuntimeException("The Errors component must be enclosed by a Form component.");
if (!tracker.getHasErrors())
{
- return;
+ return false;
}
@@ -102,5 +102,7 @@ public class Errors
writer.end(); // ul
writer.end(); // div
+
+ return false;
}
}