Re: Session Invalidate

2009-12-15 Thread Zak Johnson
Well shoot. I was hoping to avoid that for the time being, but I was afraid I would have to do it for a real logoff to work. I could always throw in some javascript to close the current browser and open a new one with the login page ;) Thanks Ed, Zak On Tue, Dec 15, 2009 at 8:37 PM, Edward Zarec

Session Invalidate

2009-12-15 Thread Zak Johnson
All - I am trying to invalidate an authenticated session as a way of logging a user out and am having some trouble doing so. I'm doing the following: add(new Link("logout"){ public void onClick(){ getSession().invalidate(); getRequestCycle().setRedi

Re: How to post form to new window using AjaxSubmitLink

2009-12-11 Thread Zak Johnson
I had a similar need and did as Igor suggested. Here is an example: add(new AjaxButton("ajax-button"){ public void onSubmit(AjaxRequestTarget target, Form form) { ...create result page, get the url path to it... target.appendJavascript("window.open('http://page_path_goes_here '

Re: Get stateful page url

2009-12-11 Thread Zak Johnson
9 AM, Igor Vaynberg wrote: > urlfor exists on component, so you can simply say > > urlfor(page) inside any component method > > -gior > > On Fri, Dec 11, 2009 at 9:18 AM, Zak Johnson wrote: > > Thanks Igor, that lead me in the right direction. Here is what I did: >

Re: Get stateful page url

2009-12-11 Thread Zak Johnson
: > urlfor(page) > > -igor > > On Fri, Dec 11, 2009 at 7:36 AM, Zak Johnson wrote: > > Yes, your example is what I was doing in the past to execute the JS on > the > > form submit. My problem is getting the actual page url to feed into my JS > > call. I know t

Re: Get stateful page url

2009-12-11 Thread Zak Johnson
x > response that opens the result popup window. > > ** > Martin > > 2009/12/11 Zak Johnson : > > So the reason I need this is because I have a requirement to submit a > form > > which keeps the main page constant but opens the result page in a new > > windo

Re: Get stateful page url

2009-12-11 Thread Zak Johnson
the unique page url to the end. If someone knows of a better way to do this, I'm all ears. Zak On Fri, Dec 11, 2009 at 9:10 AM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > Why do you need it? Maybe there is a better way around it? > > ** > Martin > >

Get stateful page url

2009-12-11 Thread Zak Johnson
I am trying to figure out a way to grab the url of a stateful page instance. So for example, I want to click a link which creates a new page and before redirecting to that page I want to grab the ?wicket:interface=:1 part of the URL. I stumbled across a simple way to do this before, but I've lo

Open new window through a form

2009-11-18 Thread Zak Johnson
All - I am trying to find a way to open a new window after submitting a form. I've seen the threads about using a Link with PopupSettings, but I can't use a link in this case, I need this popup to happen within the onSubmit method. I also can't use ModalWindow because I need the ability to kee