Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2324

Wrong Submit 'selected' event fired when using a Form with a Zone parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.12
    • 5.0.15
    • Core Components
    • None
    • Jetty 5.1.12; Tapestry 5.0.12-SNAPSHOT

    Description

      Given the following code:
      void onSelectedFromSave()
      {
      System.out.println("save");
      }

      void onSelectedFromCancelChanges()
      {
      System.out.println("cancel");
      }

      The following template outputs 'save' when clicking on the save button and 'cancel' when clicking on the cancel button
      <t:form t:id="finalizeChanges" zone="testZone">
      <t:submit t:id="save"/>
      <t:submit t:id="cancelChanges"/>
      </t:form>

      The following template/code outputs 'save' when clicking on the save button and 'save' when clicking on the cancel button
      <t:zone t:id="testZone">
      <t:form t:id="finalizeChanges" zone="testZone">
      <t:submit t:id="save"/>
      <t:submit t:id="cancelChanges"/>
      </t:form>
      </t:zone>

      The following template/code outputs 'cancel' when clicking on the save button and 'cancel' when clicking on the cancel button
      <t:zone t:id="testZone">
      <t:form t:id="finalizeChanges" zone="testZone">
      <t:submit t:id="cancelChanges"/>
      <t:submit t:id="save"/>
      </t:form>
      </t:zone>

      Attachments

        1. TAPESTRY-2324.patch
          2 kB
          Ben Sommerville
        2. Tapestry-2324_5.0.14.patch
          3 kB
          Filip S. Adamsen
        3. TAPESTRY-2324_r686911.patch
          3 kB
          Filip S. Adamsen

        Issue Links

          Activity

            People

              hlship Howard Lewis Ship
              pbeshai Peter Beshai
              Votes:
              8 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: