0 Replies Latest reply on Nov 16, 2007 10:26 AM by palvin

    how to submit a form from other form?

    palvin

      Hi,
      Could you tell me how to submit a form from other form? My scenario is:
      <a4j:form id="first">
      <a4j:commandbutton action="..."/>
      </a4j:form>
      <a4j:form id="second">
      <a4j:dataTable ....>
      ...
      </a4j:dataTable>
      </a4j:form>

      Description:I using first form to execute backingbean process, but I want got the dataTable value of the second form. I can using onclick event to submit second form<eg:onclick="javascript:document.getElementById('second').submit();return false;"> in first form's commandButton and then got the dataTable's contents, but the method will effect the page refresh, user can using go back button to do something. Have any more effective resolve in here?
      Thank you for your reply.