myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergio Vieira Rolanski <sergio.strate...@gmail.com>
Subject Re: Creating runtime Navigation Cases
Date Mon, 03 Sep 2012 17:13:30 GMT
That is nice idea.

Nevertheless, I'm calling "runtimeConfig.setNavigationRulesChanged(true);"
and MyFaces doesn't seem to take into account, unless MyFaces is in
development mode. So, it seems like a bug to me.

2012/9/3 Mike Kienenberger <mkienenb@gmail.com>

> I don't use JSCookMenu, but I took a different approach for navigation.
>
> Rather than creating navigation cases and adding them to the
> RuntimeConfig, you can create your own navigation handler.   If the
> navigation case matches your rules, perform the navigation..
> Otherwise, delegate back to the original navigation handler.
>
> On Mon, Sep 3, 2012 at 10:37 AM, Sergio Vieira Rolanski
> <sergio@strategos.com.br> wrote:
> > Hi,
> >
> > I'm dynamically creating a menu (JSCookMenu) by reading the menu and
> > submenus from the database.
> >
> > I'm also create navigation cases and add them to RuntimeConfig, this was
> > working just fine with MyFaces/Tomahawk 1.1.
> >
> > I'm trying to upgrade to MyFaces/Tomahawk 2.0 and this dynamic menu
> > creation code only works when I'm in development mode by setting
> > "javax.faces.PROJECT_STAGE" to "development".
> >
> > Is this intended behaviour?
> >
> > --
> > Sergio
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message