[ 
https://issues.apache.org/jira/browse/WICKET-696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508325
 ] 

Eelco Hillenius commented on WICKET-696:
----------------------------------------

It does work, and you can find in the list archives some people are using it (I 
may be using it myself somewhere).

Try this:

Index: 
/Users/eelcohillenius/Documents/workspace_wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/helloworld/CopyOfHelloWorld.html
===================================================================
--- 
/Users/eelcohillenius/Documents/workspace_wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/helloworld/CopyOfHelloWorld.html
    (revision 0)
+++ 
/Users/eelcohillenius/Documents/workspace_wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/helloworld/CopyOfHelloWorld.html
    (revision 0)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<html xmlns="http://www.w3.org/1999/xhtml"; >
+<head>
+    <title>Wicket Examples - copy of helloworld</title>
+    <link rel="stylesheet" type="text/css" href="style.css"/>
+</head>
+<body>
+<h3>Copy!</h3>
+    <span wicket:id="mainNavigation"/>
+    <span wicket:id="message" id="message">Message goes here</span>
+</body>
+</html>
Index: 
/Users/eelcohillenius/Documents/workspace_wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/helloworld/CopyOfHelloWorld.java
===================================================================
--- 
/Users/eelcohillenius/Documents/workspace_wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/helloworld/CopyOfHelloWorld.java
    (revision 0)
+++ 
/Users/eelcohillenius/Documents/workspace_wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/helloworld/CopyOfHelloWorld.java
    (revision 0)
@@ -0,0 +1,37 @@

+package org.apache.wicket.examples.helloworld;
+
+import org.apache.wicket.examples.WicketExamplePage;
+import org.apache.wicket.markup.html.basic.Label;
+
+
+public class CopyOfHelloWorld extends WicketExamplePage
+{
+       /**
+        * Constructor
+        */
+       public CopyOfHelloWorld()
+       {
+               add(new Label("message", "Hello World!"));
+       }
+}
\ No newline at end of file
Index: 
/Users/eelcohillenius/Documents/workspace_wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/helloworld/HelloWorld.java
===================================================================
--- 
/Users/eelcohillenius/Documents/workspace_wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/helloworld/HelloWorld.java
  (revision 550535)
+++ 
/Users/eelcohillenius/Documents/workspace_wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/helloworld/HelloWorld.java
  (working copy)
@@ -32,6 +32,7 @@
         */
        public HelloWorld()
        {
+               setResponsePage(new CopyOfHelloWorld());
                add(new Label("message", "Hello World!"));
        }
 }
\ No newline at end of file


> investigate whether calling setResponsePage in the constructor results in 
> pollution of the page map
> ---------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-696
>                 URL: https://issues.apache.org/jira/browse/WICKET-696
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>            Reporter: Eelco Hillenius
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to