aspose file tools
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 Head First Android this week in the Android 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 ?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Calling Controller method beforre page render
 
It's not a secret anymore!