JSF 1.2: ui: include mit Parametern

Haben, JSF 1.2 zwei Seiten(man.xhtml und andere.xhtml),
enthalten sind, um die aktuelle Seite durch folgende Regel:

...
    <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> 
...

So weit one.xhtml unterscheidet sich von other.xhtml nur durch Aktion-Parameter:

.xhtml:<h:commandLink action="actionOne">
andere.xhtml:<h:commandLink action="actionTwo">

Ist es möglich, einige Allgemeine xhtml?
Anstelle von einem.xhtml und andere.xhtml,so etwas wie dieses:

...
    <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> 
...

danke für die Hilfe.

InformationsquelleAutor der Frage sergionni | 2011-03-13

Schreibe einen Kommentar