Re: Use a panel as login panel rather than a different page with wicket auth

2008-03-07 Thread richardwilko
Thats a good point, I can just subclass AjaxLink, and make sure that it does a check if the user is logged in before doing the main code, if not then show my login box, then i can continue on to what the link was actually supposed to do. I do agree it would be easier to just redirect to a differ

Re: Use a panel as login panel rather than a different page with wicket auth

2008-03-07 Thread Maurice Marrink
I am not that familiar with the Wicket-auth api but i can tell you that an ajaxpopup is not going to work unless your link is an ajaxlink to. So you would have to build a custom popup that would show on the page using a flag (show/hide) and a regular request which means all your processing logic wo

RE: Use a panel as login panel rather than a different page with wicket auth

2008-03-07 Thread richardwilko
Yea, that would work, but its still having to manually intercept every link that might go to a login protected area. I was wondering if there was any way to automatically call the 'modal.show(target);' instead of redirecting to the login page. Warren Bell wrote: > > I used AbstractAjaxTimerB

RE: Use a panel as login panel rather than a different page with wicket auth

2008-03-07 Thread Warren
I used AbstractAjaxTimerBehavior as kind of a password protected screen saver and the following code to get a modal window to open when the page is loaded. Body is a WebMarkuContainer representing the body tag. I used the standard Wicket modal window with a Panel. body.add(new AjaxEventBehavior("o