Hello everybody,
I have a PhaseListener registered in the FacesConfig. And yes, I am sure
that is registered once:
javax.faces.event.PhaseListener[] listeners =
((LifecycleFactory) FactoryFinder.getFactory(FactoryFinder.
LIFECYCLE_FACTORY))
.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE
).getPhaseListeners();
System.out.println("Registered PhaseListeners:");
for (javax.faces.event.PhaseListener listener : listeners) {
System.out.println("\t" + listener.getClass().getName());
}
== CONSOLE ==
Registered PhaseListeners:
org.apache.myfaces.trinidadinternal.context.TrinidadPhaseListener
de.kathrein.webSessionHandler.PhaseListener
Most requests run well but sometimes the Listener is called again with the
phases RESTORE_VIEW and RENDER_RESPONSE only.
Then the Lifecycle looks like this (within one request):
RESTORE_VIEW(1)
APPLY_REQUEST_VALUES(2)
PROCESS_VALIDATIONS(3)
UPDATE_MODEL_VALUES(4)
INVOKE_APPLICATION(5)
RENDER_RESPONSE(6)
RESTORE_VIEW(1)
RENDER_RESPONSE(6)
How can i avoid the second call of these two phases? Has this something to
do with the TrinidadPhaseListener?
I am using MyFaces 1.1.5, Trinidad 1.0.5 on the IBM WASCE - Geronimo
implementation.
--
Stefan Kogler
Informationstechnik Organisation, ITO
KATHREIN-Werke KG
Anton-Kathrein-Straße 1-3
P.O. Box 100 444
83004 Rosenheim, Germany
Tel.: +49 8031 184-5837
Fax: +49 8031 184-525837
E-Mail: [EMAIL PROTECTED]
Internet: http://www.kathrein.de
--
Registergericht / Register court: Amtsgericht Traunstein, HRA 460 / local court
Traunstein, certificate of registration no. 460
Geschäftsführender persönlich haftender Gesellschafter / Personally liable
managing partner: Prof. Dr. Dr. h.c. Anton Kathrein, Dipl.-Betriebswirt
(MBA-equivalent)
Erfüllungsort und Gerichtsstand / Place of performance and place of
jurisdiction: Rosenheim
This e-mail is confidential and may contain privileged information. If you have
received this communication in error, please notify us immediately by
responding to this email and then delete it from your system. The sender
therefore does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. We believe but
do not warrant that this e-mail and any attachments are virus free. You must
therefore take full responsibility for virus checking.