• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

including a layer between the JSF life cycle layers

 
khaja syed
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic