3 Replies Latest reply on May 14, 2014 7:09 AM by Michal Petrov

    why a4j:commandButton can not invoke action

    sunny cathering Newbie

      we are working a web project, there is a serious problem...

      the jsf code as below;

      <a4j:commandButton value="搜索" action="#{simpleRetrospectSession.searchSmallPack}" render="results" execute="search"

                      onbegin="document.getElementById('results').style.display = 'none';document.getElementById('comField').style.display = ''; document.getElementById('sampleField').style.display = 'none';"

                      oncomplete="if(#{simpleRetrospectSession.resultFlag} == true) document.getElementById('results').style.display = '';" rendered="#{true}"/>

                   <rich:messages  value="#{simpleRetrospectSession.msg}" sytle="color:red"></rich:messages>

      there is a searching function, if I log in, it works. But if I request the function directly without log in, it does not.

      If you know, please tell me ... thanks very much .