ordre d'appel des fonctions appelées depuis la vue
Bonjour, je n'arrive pas à orienter mes recherches pour trouver des infos pour décrypter l'ordre des appels de fonctions depuis la vue xhtml ou jsf
par exemple j'ai une page page.xhtml avec monManagedBean, je fais par exemple ceci :
page.xhtml
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| <ui:composition
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:p="http://primefaces.org/ui">
[...]
#{monManagedBean.fonction1()}
[...]
<h:form>
[...]
<p:commandButton value="Valider" action="#{monManagedBean.actionPost()}" ajax="false" />
[...]
</h:form>
[...]
#{monManagedBean.fonction2()}
[...]
</ui:composition> |
Puis-je prévoir l'ordre dans lequel seront appelées fonction1(), fonction2(), actionPost() sur le meme ManagedBean (viewScoped), c'est important pour moi de le savoir.
Merci !