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 would have to check that flag to and do nothing
for that request so the user could log in first.
Frankly i wonder why you would go through so much trouble, just use a
login page. you can even wait with asking the user to login until he
actually is about to enter a page where you think he needs to login,
and after doing so he is returned to that page so he can continue his
business.
just my 2c.
Maurice
On Fri, Mar 7, 2008 at 5:34 PM, richardwilko
<[EMAIL PROTECTED]> wrote:
>
> 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 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]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Use-a-panel-as-login-panel-rather-than-a-different-page-with-wicket-auth-tp15891186p15900036.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]