Custom HandleNavigation

Hi,

I am new to JSF and i have one requirement which needs to be fulfilled. Here is the scenario:

Whenever a user submits a URL, i want to follow my custom navigation handling mechanism (This mechanism is based on Spring WebFlow). For which I have a xml which states how the flow should happen.

This is Sample XML:

<?xml version="1.0" encoding="utf-8" ?>

<n:page-flow

xmlns:n="http://FIC.Framework.UI.Navigation/Schema/NavigationSpecification"

start-state="Login">

<!-- ***************** Login Action ******************* -->

<view-state id="Login" page="Login">

<transition on="submit" to="authenticateUser"/>

<transition on="cancel" to="Login"/>

</view-state>

<action-state id="authenticateUser" action="authenticateUser">

<transition on="4201" to="Login"/>

<transition on="0" to="HomePage"/>

</action-state>

<end-state id="HomePage"/>

</n:page-flow>

I have written the code to handle navigation but now I want to replace that with current JSF Navigation mechanism.

I have a class NavigationHandler in which handleNavigation is specified which takes my custom NavigationContext(and not the FacesContext).

Can anyone help me in this please..

Regards

Pankaj

[1815 byte] By [bhomiaa] at [2007-11-27 9:46:40]
# 1
You need to extend javax.faces.application.NavigationHandler and register your class as the navigation handler in your Faces configuration. Within your implementation you'll have to figure out how to convert a FacesContext into a NavigationContext.
RaymondDeCampoa at 2007-7-12 23:57:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...