Repository: wicket
Updated Branches:
  refs/heads/3435-use-bootstrap-for-examples 4b920b58b -> 6337fb99f


WICKET-3435 Revamp Wicket Examples with the new website L&F

When components are skipped in rendering:
- make the exception message multilined for easier reading
- add info which page is this


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/d7d944dc
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/d7d944dc
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/d7d944dc

Branch: refs/heads/3435-use-bootstrap-for-examples
Commit: d7d944dc1d203b0b8263369369adc75687c4121f
Parents: 4b920b5
Author: Martin Tzvetanov Grigorov <[email protected]>
Authored: Sat Nov 29 15:36:09 2014 +0100
Committer: Martin Tzvetanov Grigorov <[email protected]>
Committed: Sat Nov 29 15:36:09 2014 +0100

----------------------------------------------------------------------
 wicket-core/src/main/java/org/apache/wicket/Page.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/d7d944dc/wicket-core/src/main/java/org/apache/wicket/Page.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/Page.java 
b/wicket-core/src/main/java/org/apache/wicket/Page.java
index 0935942..5ad1041 100644
--- a/wicket-core/src/main/java/org/apache/wicket/Page.java
+++ b/wicket-core/src/main/java/org/apache/wicket/Page.java
@@ -662,9 +662,10 @@ public abstract class Page extends MarkupContainer
                                // if still > 0
                                if (unrenderedComponents.size() > 0)
                                {
+                                       String pageInfo = "Page: " + 
Classes.name(getClass());
                                        // Throw exception
                                        throw new WicketRuntimeException(
-                                               "The component(s) below failed 
to render. Possible reasons could be that: 1) you have added a component in 
code but forgot to reference it in the markup (thus the component will never be 
rendered), 2) if your components were added in a parent container then make 
sure the markup for the child container includes them in <wicket:extend>.\n\n" +
+                                               "The component(s) below failed 
to render. Possible reasons could be that:\n 1) you have added a component in 
code but forgot to reference it in the markup (thus the component will never be 
rendered),\n 2) if your components were added in a parent container then make 
sure the markup for the child container includes them in 
<wicket:extend>.\n"+pageInfo+"\n\n" +
                                                        buffer.toString());
                                }
                        }

Reply via email to