myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rudi Steiner" <rudi.stei...@googlemail.com>
Subject Multiple calls of a phaselistener in the same request
Date Wed, 28 Mar 2007 12:54:04 GMT
Hi all,

I'm new to JSF and I'm setting up a project with myFaces and Tiles. I
had o problem with multiple DB-access in the same request, so i
googled for a phaselistener which logs something between the different
phases(RestoreView, ApplyRequestValues, ...) to see, when the DB is
accessed. I found
http://www.jsfTutorials.net/download/phaseTracker/phaseTracker.jar
which makes exactly the required job. What I'm wondering now is, that
the phaseTracker is called multiple times for each phase in one
request:

Mar 28, 2007 2:30:24 PM org.exadel.jsf.PhaseTracker beforePhas
INFO: BEFORE RENDER_RESPONSE(6)
Mar 28, 2007 2:30:24 PM org.exadel.jsf.PhaseTracker beforePhas
INFO: BEFORE RENDER_RESPONSE(6)
Mar 28, 2007 2:30:24 PM org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER RENDER_RESPONSE(6)
Mar 28, 2007 2:30:24 PM org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER RENDER_RESPONSE(6)
Mar 28, 2007 2:30:38 PM org.exadel.jsf.PhaseTracker beforePhas
INFO: BEFORE RESTORE_VIEW(1)
Mar 28, 2007 2:30:38 PM org.exadel.jsf.PhaseTracker beforePhas
INFO: BEFORE RESTORE_VIEW(1)
Mar 28, 2007 2:30:38 PM org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER RESTORE_VIEW(1)
Mar 28, 2007 2:30:38 PM org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER RESTORE_VIEW(1)
Mar 28, 2007 2:30:38 PM org.exadel.jsf.PhaseTracker beforePhas
INFO: BEFORE RENDER_RESPONSE(6)
Mar 28, 2007 2:30:38 PM org.exadel.jsf.PhaseTracker beforePhas
INFO: BEFORE RENDER_RESPONSE(6)
Mar 28, 2007 2:30:38 PM org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER RENDER_RESPONSE(6)
Mar 28, 2007 2:30:38 PM org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER RENDER_RESPONSE(6)

First i thought that something is wrong with the configuration of my
project. So I embedded the phaseTracker in the sample-tiles-app from
the myFaces website and saw, that also there the tracker is called
twice for each phase in one request.

Could anyone please tell me, why the same phaselistener is called
multiple times for one request? Has it to do with multiple <f:view/>-
and <f:subview/>-Elements in one page?

Thank you in advance,
Rudi

Mime
View raw message