This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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: 16022
    
  20

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: including a layer between the JSF life cycle layers