JSF 1.2: ui:include avec des paramètres

Ont JSF 1.2 deux pages(un.xhtml et autres.xhtml),
qui sont inclus à la page en cours par la règle suivante:

...
    <c:if test="#{flowScope.Bean.param1}">
        <ui:include src="one.xhtml"/>
    </c:if> 

    <c:if test="#{!flowScope.Bean.param1}">
        <ui:include src="other.xhtml"/>
    </c:if> 
...

Autant one.xhtml diffère de other.xhtml seulement par les paramètres de l'action:

un.xhtml:<h:commandLink action="actionOne">

d'autres.xhtml:<h:commandLink action="actionTwo">

Est-il possible d'utiliser certaines xhtml?
Au lieu d'un.xhtml et autres.xhtml,quelque chose comme ceci:

...
    <c:if test="#{flowScope.Bean.param1}">
        <ui:include src="general.xhtml" param="actionOne"/>
    </c:if> 

    <c:if test="#{!flowScope.Bean.param1}">
        <ui:include src="general.xhtml" param="actionTwo"/>
    </c:if> 
...

vous remercie pour l'aide.

InformationsquelleAutor sergionni | 2011-03-13