Re: [Wicket-user] Problem with RestartResponseAtInterceptPageException?

2006-11-01 Thread Johan Compagner
So the onsubmit is done.Then you do a redirect to a page that requires authentication.And the current user doesn't have that. And then it still goes to that page with the onsubmit?This is very strange. Set a breakpoint in PageMap. final void redirectToInterceptPage(final Page page)orfinal void redi

Re: [Wicket-user] Problem with RestartResponseAtInterceptPageException?

2006-10-31 Thread Andrew Berman
Tried it already, still doesn't work.  I also tried putting a dummy page between the PageBeforeAuthententicationRequiredPage and the MyPageThatRequiresAnAuthenticatedUser which simply does a setRedirect to the MyPageThatRequiresAnAuthenticatedUser, but still no dice.  Does it make sense for me to

Re: [Wicket-user] Problem with RestartResponseAtInterceptPageException?

2006-10-31 Thread Johan Compagner
PageBeforeAuthententicationRequiredPage:...onSubmit { setResponsePage(MyPageThatRequiresAnAuthenticatedUser.class); setRedirect(true)}johanOn 10/31/06, Andrew Berman <[EMAIL PROTECTED]> wrote:Hey Guys, This is the way I have it working.Unfortunately I'm so swamped with work so I can't

Re: [Wicket-user] Problem with RestartResponseAtInterceptPageException?

2006-10-30 Thread Andrew Berman
Hey Guys,This is the way I have it working.Unfortunately I'm so swamped with work so I can't put together a QuickStart right now, but maybe within the next couple weeks. MyApplication:getSecuritySettings().setAuthorizationStrategy(    new IAuthorizationStrategy() {  

Re: [Wicket-user] Problem with RestartResponseAtInterceptPageException?

2006-10-28 Thread Igor Vaynberg
yep, how about a quickstart-igorOn 10/28/06, Johan Compagner <[EMAIL PROTECTED]> wrote: so in the onsubmit you first redirect to another pageAnd in the constructor of that page you check it it is signed in? And if not then you throw that restart exception?That should work fine. johan On 10/28/06, A

Re: [Wicket-user] Problem with RestartResponseAtInterceptPageException?

2006-10-28 Thread Johan Compagner
so in the onsubmit you first redirect to another pageAnd in the constructor of that page you check it it is signed in?And if not then you throw that restart exception?That should work fine. johan On 10/28/06, Andrew Berman <[EMAIL PROTECTED]> wrote: Igor,For the onSubmit of the form's button, thoug

Re: [Wicket-user] Problem with RestartResponseAtInterceptPageException?

2006-10-27 Thread Andrew Berman
Igor,For the onSubmit of the form's button, though, I do a setResponsePage(MyPageThatRequiresSignIn.class);So shouldn't the original destination be the page I'm trying to go to?--Andrew On 10/27/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: original destination is the url - the page that the form is

Re: [Wicket-user] Problem with RestartResponseAtInterceptPageException?

2006-10-27 Thread Igor Vaynberg
original destination is the url - the page that the form is onthe exception does not remember params submitted via post - this does pop up now and then, any reason why you dont do the auth check before the form submit? thats the easy way out the hard way out is to submit an rfe to our jira, and eve

[Wicket-user] Problem with RestartResponseAtInterceptPageException?

2006-10-27 Thread Andrew Berman
Hello,Here is my setup:1.  I have an AuthorizationStrategy which checks a page to see if the SIgnIn is required.  If it is, it throws a RestartResponseAtInterceptPageException to my SignInPage.2.  I have a page which has a form which does some validation and when you click submit it goes to a page