Hi Thorsten,

Have a look at the reply to this mail.
http://www.nabble.com/Changing-JSF-scenario-at-runtime-tf395068.html#a10
88201

Hope this helps,

Fintan

-----Original Message-----
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: 16 April 2007 15:09
To: MyFaces Discussion
Subject: Re: Navigation Rules - Model based (dynamic) navigation support
possible?


Use a custom NavigationHandler.  :-)

That's why the hook exists, so not using it is like saying you want to
develop a JSF application without using JSF.

Have you ever used JDeveloper? (free download from Oracle, so if not,
download it and take a look)

Basically, it uses the exact process you describe (model showing pages
as objects, the user draws lines between the pages and labels each line
with the outcome on which to navigate from one object to the next), and
creates the navigation rules from it.

It sounds like the only difference between what you want and what
JDeveloper demonstrates using the standard NavigationHandler is that
you want to change the rules on the fly.    Seems like that should be
a fairly straight-forward customization of the existing handler -- worse
case you'd copy the NavigationHandler source code, and change it to
fetch data from an internal data source instead of a static set of
rules read from the config file.    And if you did it in a generic
enough way, we might even be able to make it a configurable option for
MyFaces where all you need to do is supply an alternate rule data source
in your config file rather than providing an entire new navigation
handler.

If nothing else, we could probably support it as a Tomahawk option.
Tomahawk already is set up to share code with MyFaces, so it should be
trivial to push the navigation handler into the shared core project, add
the hooks to customize it from Tomahawk, and create a Tomahawk subclass
to make use of those hooks.


On 4/16/07, Torsten Krah <[EMAIL PROTECTED]> wrote:
> By default jsf is using a outcome based navigation model.
>
> But consider a content managment system, where the user can model 
> "navigation decisions" by "drawing" connections from one object to 
> another. Data is modeled in some known way to map them to an url, 
> navigation between this model can be defined from the user.
>
> The object defines the view to be rendered, how to navigate through 
> the views, when the navigation decision is done in the model (have to 
> be done there to be changeable by the user).
>
> How could this be done with JSF.
> Navigation rules have to be "there" before starting the webapp. So how

> can a navigation be handled in a jsf compatible way, to support 
> dynamic made navigation rules in the model tier (and maybe support url

> based navigation).
>
> Is there any good way to do this, maybe some thought?
>
> Torsten
>
> PS: Please dont tell only to use a custom NavigationHandler (i guess, 
> but dont know if all these wishes could be done with it), some more 
> comments are welcome.
>

* ** *** ** * ** *** ** * ** *** ** *
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed.
Any views or opinions presented are solely those of the author, and do not 
necessarily
represent those of ESB.
If you have received this email in error please notify the sender.

Although ESB scans e-mail and attachments for viruses, it does not guarantee
that either are virus-free and accepts no liability for any damage sustained
as a result of viruses.

* ** *** ** * ** *** ** * ** *** ** *

Reply via email to