3 Replies Latest reply on Jan 18, 2012 8:12 AM by iabughosh

    Action commandButton and componentControl

    tomek.f

      Hi.

       

      I want to do something like that:

      - click the button

      - call bean action

      - render popupPanel after action

      - show popupPanel

       

       

       

      <a4j:commandButton value="#{tableProperties.edit}" render="currencyEditPopupPanel"

                                     action="#{currencyEditMB.currencyEditInitialization}">

                  <a4j:param value="#{currency.code}"

                             assignTo="#{currencyEditMB.codeEdit}" />

                  <f:setPropertyActionListener target="#{currencyEditMB.validFromEdit}" value="#{currency.validFrom}" />

                  <rich:componentControl event="dblclick" operation="show" target="currencyEditPopupPanel" />

              </a4j:commandButton>

       

      But the bean action is not fired now! How can I do it?

       

      This code works, but I have to click two buttons:

       

      <a4j:commandButton value="#{tableProperties.edit}" render="currencyEditPopupPanel"

                                     action="#{currencyEditMB.currencyEditInitialization}">

                  <a4j:param value="#{currency.code}"

                             assignTo="#{currencyEditMB.codeEdit}" />

                  <f:setPropertyActionListener target="#{currencyEditMB.validFromEdit}" value="#{currency.validFrom}" />

                  <!--<rich:componentControl event="dblclick" operation="show" target="currencyEditPopupPanel" />-->

              </a4j:commandButton>

       

       

              <a4j:commandButton value="#{tableProperties.edit}" render="currencyEditPopupPanel">

                  <rich:componentControl event="click" target="currencyEditPopupPanel" operation="show" />

              </a4j:commandButton>