我正在尝试使用<a4j:commandButton>. 但是当我使用rendered或disabled属性(也从动作方法评估)时,它不起作用。
这是我的代码片段:
<a4j:region block="true" >
    <a4j:form id="download_form">
        <a4j:commandButton id="download_button"
          action="#{studentInfo.actionDownload}"
          onclick="#{rich:component('download_progress')}.show(); setPopupPosition('#{rich:clientId('download_progress')}');"
          reRender="dlod_msg_grd"
          oncomplete="#{rich:component('download_progress')}.hide();
          value="Download a student" 
          rendered="#{studentInfo.validForDownload}"
          />
    </a4j:form>
</a4j:region>
如果我使用rendered="#{studentInfo.validForDownload}"一切rendered="#{true}"正常,则调用 bean 的操作方法。但是我现在用的方法不行
studentInfo.validForDownload正在评估为真,因此正在a4j:commandButton正确渲染。