> I have a LoginPage class that basically handles login through acegi. When a
> user is logged in, I have  LoginPanel that shows some information about the
> user, an "Edit Profile" link and a "Logout" link.
>
> When the user clicks on logout, I have the following blocK:
>
> add(new Label("logoutDisplay", "Login"))
>     .add(new Link("logoutLink") {
>         @Override
>         public void onClick() {
>             ACPSession session = (ACPSession)getPage().getSession();
>             session.signOut();
>         }
> });
>
>
> Inside of the onClick override I sign them out, and I also want to redirect
> them to the LoginPage but with a message that says "You have been signed
> out." On my LoginPage I have a FeedbackPanel that is used for various
> messages (Cannot authenticate, username required, etc). How can I leverage
> the FeedbackPanel to add a message to it before it renders the page?

Since you have no session anymore to connect between those two pages,
you should pass some info to that login page, like a parameter. Or
make an extension of your login page that shows the message you want
and redirect to that.

Eelco

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

Reply via email to