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
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
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
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