Wicket in Action: problem with redirection

2011-03-10 Thread Jim Goodwin
I'm a Wicket newbie, working my way through /Wicket in Action. /I don't understand redirection too clearly yet, but there is an example in the book which doesn't work right when I try it and I'd like to ask if the book example code makes sense to more experienced folks. Page 271 Listing 11.3 lin

Re: Wicket in Action: problem with redirection

2011-03-10 Thread Jeremy Thomerson
On Thu, Mar 10, 2011 at 12:36 PM, Jim Goodwin wrote: > I'm a Wicket newbie, working my way through /Wicket in Action. > > /I don't understand redirection too clearly yet, but there is > an example in the book which doesn't work right when I > try it and I'd like to ask if the book example code ma

Re: Wicket in Action: problem with redirection

2011-03-15 Thread Jim Pinkham
I think I've got the same situation happening. It's a login link on my home page, whose onClick uses the usual: throw new RestartResponseAtInterceptPageException( AuctionApplication.get().getSignInPageClass()); I've stepped thru this a bit, and I find a problem

Re: Wicket in Action: problem with redirection

2011-03-16 Thread Martin Grigorov
Try with RC2 and if it still fails please create a ticket with a quickstart On Tue, Mar 15, 2011 at 11:27 PM, Jim Pinkham wrote: > I think I've got the same situation happening. > > It's a login link on my home page, whose onClick > uses the usual: >throw new RestartResponseAtInt

Re: Wicket in Action: problem with redirection

2011-03-16 Thread Jim Pinkham
FYI - rc2 still has this problem. It works OK on a BookmarkablePageLink to a page that implement IAuthorizationStrategy, but not on the new Link on a panel on my home page. After login is complete, the link is hidden and replaced with a logout link, so the user gets an AccessDenied page after lo

Re: Wicket in Action: problem with redirection

2011-03-16 Thread Martin Grigorov
Thanks Jim, But without a quickstart it is hard to debug it. There is a ticket which sounds to be related to what you described: https://issues.apache.org/jira/browse/WICKET-3493 On Wed, Mar 16, 2011 at 9:54 PM, Jim Pinkham wrote: > FYI - rc2 still has this problem. It works OK on a Bookmarka

Re: Wicket in Action: problem with redirection

2011-03-17 Thread Jim Pinkham
OK, I just attached a quickstart (my first) - hope it helps with resolution (soon). On Wed, Mar 16, 2011 at 5:03 PM, Martin Grigorov wrote: > Thanks Jim, > > But without a quickstart it is hard to debug it. > There is a ticket which sounds to be related to what you described: > https://issues.apa

Re: Wicket in Action: problem with redirection

2011-03-18 Thread Martin Grigorov
On Fri, Mar 18, 2011 at 8:39 PM, Jim Pinkham wrote: > .. and I also attached a fairly ugly patched version of > > RestartResponseAtInterceptPageException > > that seem to work for me, but use at your own risk. > > Did you see Igor's response ? > Hope this helps, > -- Jim. > > > On Thu, Mar 17,

Re: Wicket in Action: problem with redirection

2011-03-18 Thread Jim Pinkham
Martin, Thanks, no I hadn't seen that... but now I think this is just because I over-simplified the quickstart - it still doesn't explain why it was working properly up thru 1.5-M3 (using examples from wicket-auth-roles to have login link hander throw this restart exception, so if that's not a b

Re: Wicket in Action: problem with redirection

2011-03-18 Thread Martin Grigorov
Better check the behavior with the quickstart with Wicket 1.4.16 1.5-M3 may had a bug. On Fri, Mar 18, 2011 at 8:50 PM, Jim Pinkham wrote: > Martin, > > Thanks, no I hadn't seen that... but now I think this is just because I > over-simplified the quickstart - it still doesn't explain why it was