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

Understaing JSF - where to display and how  RSS feed

 
Jordan Smith
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I am creating a dynamic menu. The values come from the data base.

To do that, i created MenuBean to display rich:dropDownMenu.

i would like the menu to be displayed on every screen. for that i created header.jsp that is included in every page with <jsp:include page="header.jpp">.

my question is about the scope: do i declare the scope as session? what does it mean? that MenuBean methods will be executed

only once in the user session?
 
suresh dasari
Ranch Hand
Posts: 121
Chrome Eclipse IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends up on the business requirement, if you want to get the updated records for every request, then you should use request scope, else through out the session you want to maintain the same record values then go with session scope.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!