This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes JSF and the fly likes Calling Controller method beforre page render Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Calling Controller method beforre page render" Watch "Calling Controller method beforre page render" New topic
Author

Calling Controller method beforre page render

Sim Kim
Ranch Hand

Joined: Aug 06, 2004
Posts: 268
Hi All,

I have created menu in my web application using DHTML Tabber where each menu item is a link.
I am using Facelets with JSF 1.2 .
I want on click of each menu item a page should load in the body section of my template but before that I want a controllers method to be executed which would do some initializations. I cannot change the links in my menu to be <h:commandLink> since the menu is created using javascript (it cannot have <h:commandLink> in it) .

How do I achieve this ?
 
 
subject: Calling Controller method beforre page render