You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2014/06/03 01:23:37 UTC
git commit: Do not require that a page (for partial rendering) be
selected before applying partial page render filters
Repository: tapestry-5
Updated Branches:
refs/heads/master 590f14f09 -> 2650b107c
Do not require that a page (for partial rendering) be selected before applying partial page render filters
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/2650b107
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/2650b107
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/2650b107
Branch: refs/heads/master
Commit: 2650b107c194a06cfc855b1526d8fa06012ec2c0
Parents: 590f14f
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Mon Jun 2 16:12:10 2014 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Mon Jun 2 16:12:10 2014 -0700
----------------------------------------------------------------------
.../internal/services/PageRenderQueueImpl.java | 14 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/2650b107/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/PageRenderQueueImpl.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/PageRenderQueueImpl.java b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/PageRenderQueueImpl.java
index c7c4518..34a997d 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/PageRenderQueueImpl.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/PageRenderQueueImpl.java
@@ -93,21 +93,11 @@ public class PageRenderQueueImpl implements PageRenderQueue
return partialRenderInitialized;
}
- private void partialRenderInitialized()
- {
- if (page == null)
- {
- throw new IllegalStateException("Page must be specified before initializing for partial page render.");
- }
-
- partialRenderInitialized = true;
- }
-
public void addPartialRenderer(RenderCommand renderer)
{
assert renderer != null;
- partialRenderInitialized();
+ partialRenderInitialized = true;
queue.push(renderer);
}
@@ -128,7 +118,7 @@ public class PageRenderQueueImpl implements PageRenderQueue
{
assert filter != null;
- partialRenderInitialized();
+ partialRenderInitialized = true;
filters.push(filter);
}