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("onload")
{
        protected void onEvent(AjaxRequestTarget target)
        {
                modal.show(target);
        }
});

> -----Original Message-----
> From: richardwilko [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 07, 2008 7:06 AM
> To: [email protected]
> Subject: Use a panel as login panel rather than a different page with
> wicket auth
>
>
>
> Hi,
>
> We are using the wicket-auth stuff on our site.
>
> However rather than having a separate page for login we have a
> modal window
> in our page (not a wicket modal window, but a custom one, its basically a
> wicket panel in the page).
>
> Is there any way to make my code for popping up the modal execute when a
> login is needed rather than redirecting to a different page?  I
> know we can
> do this by checking if the user is logged in when a link is
> clicked and then
> running our code, but that kind of defeats the purpose of using the wicket
> auth stuff.
>
> Thanks,
>
> Richard
> --
> View this message in context:
> http://www.nabble.com/Use-a-panel-as-login-panel-rather-than-a-dif
> ferent-page-with-wicket-auth-tp15891186p15891186.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to