posted 12 years ago
Hi,
I have this <h:selectOneMenu> tag where the user can change the language.
Here is the method of the managed bean :
The method is called but the values of the current view are not updated. They are updated if i refresh the page.
Here are the sequence of phases calls :
1) User changes the language :
2) User refreshes the page :
Obviously, the UPDATE_MODEL_VALUES et INVOKE_APPLICATION phases are skipped.
Question : why are they skipped and how can i call them ?
Well I did manage to call these 2 phases with these 2 lines :
event.setPhaseId(PhaseId.UPDATE_MODEL_VALUES);
event.queue();
In that case all phases are called. Still, I need to refresh the page to get the chosen language.
Thanks in advance for helping.