Permalink
Browse files

use stateless links for login/logout

  • Loading branch information...
1 parent 2244e12 commit a26ec0f653394ec0bf2b4493d0f48232552b3714 @Athou committed May 9, 2012
@@ -1,7 +1,7 @@
package be.hehehe.geekbot.web.auth;
import org.apache.wicket.markup.html.basic.Label;
-import org.apache.wicket.markup.html.link.Link;
+import org.apache.wicket.markup.html.link.StatelessLink;
import org.apache.wicket.markup.html.panel.Panel;
@SuppressWarnings("serial")
@@ -10,7 +10,7 @@
public LoggedInButtonPanel(String id) {
super(id);
add(new Label("username", (String) getSession().getAttribute("name")));
- add(new Link<String>("signout") {
+ add(new StatelessLink<String>("signout") {
@Override
public void onClick() {
getSession().invalidate();
@@ -1,14 +1,14 @@
package be.hehehe.geekbot.web.auth;
-import org.apache.wicket.markup.html.link.Link;
+import org.apache.wicket.markup.html.link.StatelessLink;
import org.apache.wicket.markup.html.panel.Panel;
@SuppressWarnings("serial")
public class LoggedOutButtonPanel extends Panel {
public LoggedOutButtonPanel(String id) {
super(id);
- add(new Link<String>("login") {
+ add(new StatelessLink<String>("login") {
@Override
public void onClick() {
setResponsePage(LoginPage.class);

0 comments on commit a26ec0f

Please sign in to comment.