Hi,
I have a (small) problem in my project, I am using JSF2 (MyFaces 2.1.6)
in combination with Spring Webflow.
At the end of phase 'RESTORE_VIEW' (before notifying the phase
listeners) Spring Webflow publishes a 'PostRestoreState' event that
visits the whole component tree with the help of
facesContext.getViewRoot().visitTree() (without any VisitHint).
I am not sure about the intention of a 'PostRestoreState' event. Should
it be published to all components? Is there anywhere something specified
about the intended behavior of such an event? I could not find anything.
My problem occurs using a datatable. It is not rendered but it is
visited (and iterated) and so it tries to work on its corrupt datamodel.
https://jira.springsource.org/browse/SWF-1549
The only place in MyFaces I found that looks similar is
DefaultRestoreViewSupport.processComponentBinding() which is called
through RestoreViewExecutor. There is the VisitHint SKIP_ITERATION used.
If I change the Webflow code to use this hint too, the problem in the
datatable disappears.
Thank you,
dennis
--
HIS Hochschul-Informations-System GmbH
Goseriede 9 | 30159 Hannover | www.his.de
Dennis Hörsch
Unternehmensbereich Hochschul-IT
Arbeitsbereich Personalmanagement
Telefon +49 (0)511 1220-403
E-Mail [email protected]
Registergericht: Amtsgericht Hannover, HRB 6489
Geschäftsführer: Dipl.-Phys. Wolfgang Körner
Vorsitzender des Aufsichtsrats: Prof. Dr. Andreas Geiger