• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Menu bean

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,

i've been battling with this for a almost a 2 weeks

I�m trying to get this menu bean working, I�ve got a constructor created and initialized

(I think this is where the problem might be) cos this only gets executed once,

When the status changes I want it to display a different menu option---logoff.

When status equals Home, it must display Login and when the status equals Logon then it must change to Log Off

Menu bean displays options on your left hand side of the page with different options�

I�m using java server faces with struts tiles, so I have my layout jsp menu, footer and heading and so forth.

I call the bean directly from my jsf pages and this is all fine even though I�m new to jsf. The jsf part is working fine.

Before you login it should look like this

Home
Login

--------

Admin
Users

--------

Requirements
Actors
Use Case


After you logged in it should look like this


Home
Log Off

--------

Admin
Users

--------

Requirements
Actors
Use Case

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!