5 Replies Latest reply on Jun 12, 2007 7:53 AM by Ilya Shaikovsky

    Action method never called

    Julien Martin Expert

      Hello,
      I have identified a problem with my app which really puzzles me:

      When I specify programmatically whether a command button should be rendered, the action method never gets called whereas the button does get rendered. See below:

      <a4j:commandButton action="#{ContractManagedBean.updateContractAction}" image="images/update.png" rendered="#{ContractManagedBean.contractForUpdate}"/>


      When I specify declaratively whether the button should be rendered, the action method does get called. See below:

      <a4j:commandButton action="#{ContractManagedBean.updateContractAction}" image="images/update.png" rendered="true"/>


      What I am missing?

      Thanks in advance,

      Julien.