4 Replies Latest reply on Jul 10, 2012 10:15 AM by Ernesto Hernandez

    a4j:commandButton always executes form even when execute id's given

    Nandish A Newbie

       

       

      I have a a4j:commandLink which is supposed to execute a a4j:outputPanel on click.  However it executes the form on click even when I have given the id's in the execute tag

       

      <a4j:commandLink id="more_message_button"

                                                          value
      ="Load More Comments"
                                                          action
      ="#{feedbackAction.setFeedbackIdForExpansion(unitfeedback.feedbackId)}"
                                                          execute
      ="expandedList,more_message_button" href="javascript:void(0)" limitRender="true"
                                                          render
      ="expandedList,more_message_button">
                                                     
      </a4j:commandLink>`


                                                 
      <a4j:outputPanel layout="block" id="expandedList">



      <a4j:repeat
                                                          value
      ="#{feedbackAction.getCommentsForNextHop(unitfeedback)}"
                                                          var
      ="unitComment" rowKeyVar="idx">
        
      .
        
      .
        
      .

      </a4j:outputPanel>

       

       

      Any help on this to overide the default behavior or am I missing anything here

      Regards,

      Nandish

      .