4 Replies Latest reply on Sep 15, 2008 7:52 PM by sergeysmirnov

    how to stop multiple ajax requests?

      Hi,

      I have the following page with an output panel and a link in the output panel. When I click on the background of the output panel I want to fire an ajax request and likewise when I click on the link, BUT they must be mutually exclusive

      However when I click on the link, the output panel request also fires, makes sense cos obvioulsy the onclick event is raised on the panel. How can I stop this so that if the user clicks the panel then only the panel action is fired and if the user clicks the link then only the link action is fired?

      <a4j:outputPanel>
       <a4j:support event="onclick" event="#{panelAction} />
       <a4j:commandLink value="link" action="#{linkAction}" />
      </a4j:outputPanel>