This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSF and the fly likes including a layer between the JSF life cycle layers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "including a layer between the JSF life cycle layers " Watch "including a layer between the JSF life cycle layers " New topic
Author

including a layer between the JSF life cycle layers

khaja syed
Greenhorn

Joined: Oct 30, 2012
Posts: 3
Hi,
I want to know how many times a particular page has been rendered to user within a session and i want to count the number of occurrences.
Please help me in doing this requirement.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17018
    
  26

Welcome to the JavaRanch, Khaja!

Without actually checking the technical details, I'd say that probably you should implement a PhaseListener to catch the rendering phase of the JSF lifecycle and record what view is being rendered.

Note that because JSF uses postbacks, the number of page render operations is going to be a lot higher than it would be for most web application frameworks and will not have a simple correspondence to the "number of page views" that is the common metric for the popularity of a page.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: including a layer between the JSF life cycle layers
 
It's not a secret anymore!