This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF-Facelets Dynamic Navigation Problem  RSS feed

 
Peterson Machado
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!!
I'm having trouble to make dynamic navigation work using jsf/facelets/richfaces.

Here's the code:
index.xhtml


defaultNavigation.xhtml


NavigationBean.java


When I first load the page, the content section shows /pages/content/defaultContent.xhtml. When I click on the panelMenuItem, the NavigationBean is updated (setting content = /pages/content/anotherContent.xhtml). The problem is that the content section is not reloaded.
If I do it "mannualy" (refreshing the browser), the correct content is loaded.

I tried using mode="ajax" and reRender on rich:menuItem, but no luck...

Anyone knows how to succesfuly implement this kind of navigation??
thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!