在以下代码段中,“Test Action 2”按钮执行,但“Test Action 1”按钮不执行。如何执行“测试操作1”?
我已经确认hcommandlink-hcommandbutton-is-not-being-invoked中的非点数适用。
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:shiro="http://shiro.apache.org/tags">
<h:form>
<h:messages />
<c:if test="#{null ne requestScope['breadCrumbList']}">
<div class="breadcrumb">
<h:commandButton value="Test Action 1"
action="#{bcrumbCtrl.doStuff}"
actionListener="#{bcrumbCtrl.doStuff}" />
</div>
</c:if>
<h:commandButton value="Test Action2" action="#{bcrumbCtrl.doStuff}"
actionListener="#{bcrumbCtrl.doStuff}" />
</h:form>
</ui:composition>