我在项目中看到了一个奇怪的问题.这是<h:commandButton/>不执行动作方法.
<c:choose>
<c:when test="#{empty param.t}">
// HTML
</c:when>
<c:when test="#{param.t eq 'normal'}">
// HTML
<h:form>
<h:commandButton value="ADD" action="#{addBean.doSomething}" />
</h:form>
<c:when>
</c:choose>
Run Code Online (Sandbox Code Playgroud)
当我<h:form>进入第一个c:when,然后调用action方法.否则,事实并非如此.为什么?
jsf ×1