[seam-commits] Seam SVN: r8673 - trunk/examples/wicket/src/web/org/jboss/seam/example/wicket.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Aug 13 07:39:44 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-08-13 07:39:44 -0400 (Wed, 13 Aug 2008)
New Revision: 8673

Modified:
   trunk/examples/wicket/src/web/org/jboss/seam/example/wicket/Template.java
Log:
JBSEAM-3257

Modified: trunk/examples/wicket/src/web/org/jboss/seam/example/wicket/Template.java
===================================================================
--- trunk/examples/wicket/src/web/org/jboss/seam/example/wicket/Template.java	2008-08-13 11:22:32 UTC (rev 8672)
+++ trunk/examples/wicket/src/web/org/jboss/seam/example/wicket/Template.java	2008-08-13 11:39:44 UTC (rev 8673)
@@ -5,6 +5,8 @@
 import org.apache.wicket.markup.html.link.BookmarkablePageLink;
 import org.apache.wicket.markup.html.link.Link;
 import org.jboss.seam.annotations.In;
+import org.jboss.seam.core.Conversation;
+import org.jboss.seam.core.Manager;
 import org.jboss.seam.example.wicket.action.User;
 import org.jboss.seam.security.Identity;
 
@@ -20,8 +22,24 @@
    public Template(String id)
    {
       super(id);
-      add(new BookmarkablePageLink("search", Main.class));
-      add(new BookmarkablePageLink("settings", Password.class));
+      add(new Link("search")
+      {
+         @Override
+         public void onClick()
+         {
+            Manager.instance().leaveConversation();
+            setResponsePage(Main.class);
+         }
+      });
+      add(new Link("settings")
+      {
+         @Override
+         public void onClick()
+         {
+            Manager.instance().leaveConversation();
+            setResponsePage(Password.class);
+         }
+      });
       add(new Link("logout")
       {
          @Override




More information about the seam-commits mailing list