JSF 1.2: dynamic <ui:param />

笑着哭i 提交于 2019-12-12 01:52:43

问题


There are some answers on stackoverflow, but no one fits my needs :(

I'm trying to conditionally build a <ui:param /> for my parent template with JSTL. Something like this:

<ui:composition ... template="template.xhtml">

    <c:if test="#{condition}">
        <ui:param name="parameter" value="parameterValue" />
    </c:if>

    <ui:define name="insertName">
        {...}
    </ui:define>

</ui:composition>

I tried with both namespaces for JSTL: http://java.sun.com/jstl/core and http://java.sun.com/jsp/jstl/core, but neither achieves the wanted behaviour. What should I do?

Funny thing, http://java.sun.com/jstl/core works like it should but INSIDE the <ui:define ...>

Im working with JSF 1.2 on WebLogic 7.

来源:https://stackoverflow.com/questions/41810854/jsf-1-2-dynamic-uiparam

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!