A simple MethodBinding should do. Make sure your method returns a string
with the outcome.

The Methodbinding looks like this:
action="#{myBean.anyMethod}"

And the Method like this:

public String anyMethod()
{
    // do your logout
    return "loggedout";
}

This will forward to the view "loggedout". If the specified view does
not exist the current page will be redisplayed.


Don Tam schrieb:

> Hi,
>
> As I understand it, navigationMenuItems only take actions mapped to
> <navigation-case>s.  How would I configure it to do something like log
> off, which is just an action, before going to a view id?
>
> Thanks,
>

Reply via email to