File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Spring in Action this week in the Spring 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 ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling Controller method beforre page render