BookmarkablePageLink functionality in a Button
Hello, everyone! I've got this logout page: public class LogoutPage extends WebPage { public LogoutPage() { add(new FormObject(form).add(new AjaxButton(home) { private static final long serialVersionUID = 1L; @Override protected void onSubmit(AjaxRequestTarget arg0, Form? arg1) { setResponsePage(Calendar.class); } })); } @Override protected void onAfterRender() { super.onAfterRender(); getSession().invalidate(); RequestCycle.get().setRedirect(true); } } I used to have a BookmarkablePageLink instead of this button, that pointed to the very same page. However, obviously this button is related to the session and instead of sending me to the login page, it sends me to pageExpiredPage. Unfortunately, the new UI I have to use uses a button, so I had to use a button as well. Can anyone assist me on this? Best, Martin
Re: BookmarkablePageLink functionality in a Button
Have you tried just attaching your link to a button? button wicket:id=myButtonSomeText/button On Mon, Apr 12, 2010 at 3:44 AM, Martin Asenov mase...@velti.com wrote: Hello, everyone! I've got this logout page: public class LogoutPage extends WebPage { public LogoutPage() { add(new FormObject(form).add(new AjaxButton(home) { private static final long serialVersionUID = 1L; �...@override protected void onSubmit(AjaxRequestTarget arg0, Form? arg1) { setResponsePage(Calendar.class); } })); } �...@override protected void onAfterRender() { super.onAfterRender(); getSession().invalidate(); RequestCycle.get().setRedirect(true); } } I used to have a BookmarkablePageLink instead of this button, that pointed to the very same page. However, obviously this button is related to the session and instead of sending me to the login page, it sends me to pageExpiredPage. Unfortunately, the new UI I have to use uses a button, so I had to use a button as well. Can anyone assist me on this? Best, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: BookmarkablePageLink functionality in a Button
You mean to put an anchor inside the button's body? Best, Martin -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Monday, April 12, 2010 1:41 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink functionality in a Button Have you tried just attaching your link to a button? button wicket:id=myButtonSomeText/button On Mon, Apr 12, 2010 at 3:44 AM, Martin Asenov mase...@velti.com wrote: Hello, everyone! I've got this logout page: public class LogoutPage extends WebPage { public LogoutPage() { add(new FormObject(form).add(new AjaxButton(home) { private static final long serialVersionUID = 1L; �...@override protected void onSubmit(AjaxRequestTarget arg0, Form? arg1) { setResponsePage(Calendar.class); } })); } �...@override protected void onAfterRender() { super.onAfterRender(); getSession().invalidate(); RequestCycle.get().setRedirect(true); } } I used to have a BookmarkablePageLink instead of this button, that pointed to the very same page. However, obviously this button is related to the session and instead of sending me to the login page, it sends me to pageExpiredPage. Unfortunately, the new UI I have to use uses a button, so I had to use a button as well. Can anyone assist me on this? Best, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: BookmarkablePageLink functionality in a Button
No, do exactly what I put. 2010/4/12 Martin Asenov mase...@velti.com: You mean to put an anchor inside the button's body? Best, Martin -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Monday, April 12, 2010 1:41 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink functionality in a Button Have you tried just attaching your link to a button? button wicket:id=myButtonSomeText/button On Mon, Apr 12, 2010 at 3:44 AM, Martin Asenov mase...@velti.com wrote: Hello, everyone! I've got this logout page: public class LogoutPage extends WebPage { public LogoutPage() { add(new FormObject(form).add(new AjaxButton(home) { private static final long serialVersionUID = 1L; �...@override protected void onSubmit(AjaxRequestTarget arg0, Form? arg1) { setResponsePage(Calendar.class); } })); } �...@override protected void onAfterRender() { super.onAfterRender(); getSession().invalidate(); RequestCycle.get().setRedirect(true); } } I used to have a BookmarkablePageLink instead of this button, that pointed to the very same page. However, obviously this button is related to the session and instead of sending me to the login page, it sends me to pageExpiredPage. Unfortunately, the new UI I have to use uses a button, so I had to use a button as well. Can anyone assist me on this? Best, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: BookmarkablePageLink functionality in a Button
James :) I can't get it... Put what where? Best, Martin -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Monday, April 12, 2010 3:26 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink functionality in a Button No, do exactly what I put. 2010/4/12 Martin Asenov mase...@velti.com: You mean to put an anchor inside the button's body? Best, Martin -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Monday, April 12, 2010 1:41 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink functionality in a Button Have you tried just attaching your link to a button? button wicket:id=myButtonSomeText/button On Mon, Apr 12, 2010 at 3:44 AM, Martin Asenov mase...@velti.com wrote: Hello, everyone! I've got this logout page: public class LogoutPage extends WebPage { public LogoutPage() { add(new FormObject(form).add(new AjaxButton(home) { private static final long serialVersionUID = 1L; �...@override protected void onSubmit(AjaxRequestTarget arg0, Form? arg1) { setResponsePage(Calendar.class); } })); } �...@override protected void onAfterRender() { super.onAfterRender(); getSession().invalidate(); RequestCycle.get().setRedirect(true); } } I used to have a BookmarkablePageLink instead of this button, that pointed to the very same page. However, obviously this button is related to the session and instead of sending me to the login page, it sends me to pageExpiredPage. Unfortunately, the new UI I have to use uses a button, so I had to use a button as well. Can anyone assist me on this? Best, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: BookmarkablePageLink functionality in a Button
In your code... add(new BookmarkablePageLink(mylink, myurl)); In your markup: button wicket:id=mylinkWhatever You Want the Button to Say/button 2010/4/12 Martin Asenov mase...@velti.com: James :) I can't get it... Put what where? Best, Martin -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Monday, April 12, 2010 3:26 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink functionality in a Button No, do exactly what I put. 2010/4/12 Martin Asenov mase...@velti.com: You mean to put an anchor inside the button's body? Best, Martin -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Monday, April 12, 2010 1:41 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink functionality in a Button Have you tried just attaching your link to a button? button wicket:id=myButtonSomeText/button On Mon, Apr 12, 2010 at 3:44 AM, Martin Asenov mase...@velti.com wrote: Hello, everyone! I've got this logout page: public class LogoutPage extends WebPage { public LogoutPage() { add(new FormObject(form).add(new AjaxButton(home) { private static final long serialVersionUID = 1L; �...@override protected void onSubmit(AjaxRequestTarget arg0, Form? arg1) { setResponsePage(Calendar.class); } })); } �...@override protected void onAfterRender() { super.onAfterRender(); getSession().invalidate(); RequestCycle.get().setRedirect(true); } } I used to have a BookmarkablePageLink instead of this button, that pointed to the very same page. However, obviously this button is related to the session and instead of sending me to the login page, it sends me to pageExpiredPage. Unfortunately, the new UI I have to use uses a button, so I had to use a button as well. Can anyone assist me on this? Best, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: BookmarkablePageLink functionality in a Button
Never knew I could put a wicket link in a button tag... :-) Thank you, James! Best, Martin -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Monday, April 12, 2010 3:55 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink functionality in a Button In your code... add(new BookmarkablePageLink(mylink, myurl)); In your markup: button wicket:id=mylinkWhatever You Want the Button to Say/button 2010/4/12 Martin Asenov mase...@velti.com: James :) I can't get it... Put what where? Best, Martin -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Monday, April 12, 2010 3:26 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink functionality in a Button No, do exactly what I put. 2010/4/12 Martin Asenov mase...@velti.com: You mean to put an anchor inside the button's body? Best, Martin -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Monday, April 12, 2010 1:41 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink functionality in a Button Have you tried just attaching your link to a button? button wicket:id=myButtonSomeText/button On Mon, Apr 12, 2010 at 3:44 AM, Martin Asenov mase...@velti.com wrote: Hello, everyone! I've got this logout page: public class LogoutPage extends WebPage { public LogoutPage() { add(new FormObject(form).add(new AjaxButton(home) { private static final long serialVersionUID = 1L; �...@override protected void onSubmit(AjaxRequestTarget arg0, Form? arg1) { setResponsePage(Calendar.class); } })); } �...@override protected void onAfterRender() { super.onAfterRender(); getSession().invalidate(); RequestCycle.get().setRedirect(true); } } I used to have a BookmarkablePageLink instead of this button, that pointed to the very same page. However, obviously this button is related to the session and instead of sending me to the login page, it sends me to pageExpiredPage. Unfortunately, the new UI I have to use uses a button, so I had to use a button as well. Can anyone assist me on this? Best, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: BookmarkablePageLink functionality in a Button
You can put a wicket link on almost anything! 2010/4/12 Martin Asenov mase...@velti.com: Never knew I could put a wicket link in a button tag... :-) Thank you, James! Best, Martin -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Monday, April 12, 2010 3:55 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink functionality in a Button In your code... add(new BookmarkablePageLink(mylink, myurl)); In your markup: button wicket:id=mylinkWhatever You Want the Button to Say/button 2010/4/12 Martin Asenov mase...@velti.com: James :) I can't get it... Put what where? Best, Martin -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Monday, April 12, 2010 3:26 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink functionality in a Button No, do exactly what I put. 2010/4/12 Martin Asenov mase...@velti.com: You mean to put an anchor inside the button's body? Best, Martin -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Monday, April 12, 2010 1:41 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink functionality in a Button Have you tried just attaching your link to a button? button wicket:id=myButtonSomeText/button On Mon, Apr 12, 2010 at 3:44 AM, Martin Asenov mase...@velti.com wrote: Hello, everyone! I've got this logout page: public class LogoutPage extends WebPage { public LogoutPage() { add(new FormObject(form).add(new AjaxButton(home) { private static final long serialVersionUID = 1L; �...@override protected void onSubmit(AjaxRequestTarget arg0, Form? arg1) { setResponsePage(Calendar.class); } })); } �...@override protected void onAfterRender() { super.onAfterRender(); getSession().invalidate(); RequestCycle.get().setRedirect(true); } } I used to have a BookmarkablePageLink instead of this button, that pointed to the very same page. However, obviously this button is related to the session and instead of sending me to the login page, it sends me to pageExpiredPage. Unfortunately, the new UI I have to use uses a button, so I had to use a button as well. Can anyone assist me on this? Best, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
BookmarkablePageLink functionality in a Button
Hello, everyone! I've got this logout page: public class LogoutPage extends WebPage { public LogoutPage() { add(new FormObject(form).add(new AjaxButton(home) { private static final long serialVersionUID = 1L; @Override protected void onSubmit(AjaxRequestTarget arg0, Form? arg1) { setResponsePage(Calendar.class); } })); } @Override protected void onAfterRender() { super.onAfterRender(); getSession().invalidate(); RequestCycle.get().setRedirect(true); } } I used to have a BookmarkablePageLink instead of this button, that pointed to the very same page. However, obviously this button is related to the session and instead of sending me to the login page, it sends me to pageExpiredPage. Unfortunately, the new UI I have to use uses a button, so I had to use a button as well. Can anyone assist me on this? Best, Martin