> If this is true, do I put the navigation-rule in for the page I'm loading
> or the one I'm leaving?

Yes. It uses the current view ID. Since the phase listener is hooked
to before render, the requested view's viewId has already be
established. So you use the navigation rules just as if someone is
executing an action from the requested view.

> Is there a generic handling of this in
> faces-config.xml.  Such as any page that returns with an action of
> "notloggedin" would go to the login.jspx page?

You can use * as the view ID in your faces-config to trap actions or
outcomes globally.

There is an example WAR in the test code of the onload component that
you can have a look at too.

-Andrew

Reply via email to