Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-779

CLONE -Linksubmit doesn't work inside a form with Zone parameter set

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2
    • Fix Version/s: 5.2.0, 5.1.0.6, 5.1.0.7
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".

      <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
      <t:form zone="zone">
      <t:zone t:id="zone">
      <t:select value="type" />
      <t:linksubmit t:id="submit">submit</t:linksubmit>
      </t:zone>
      </t:form>
      </html>

      public class Test
      {
      public enum Types

      { TYPE1, TYPE2, TYPE3; }

      @Property private Types type;

      void onSelectedFromSubmit()

      { System.out.println("linksubmit was used"); }

      void onSuccess()

      { System.out.println("form was submitted"); }

      }

      1. TAP5-779.txt
        4 kB
        Ulrich Stärk
      2. TAP5-779-5.1.txt
        4 kB
        Ulrich Stärk

        Issue Links

          Activity

          Hide
          ulrich.staerk Ulrich Stärk added a comment -

          Patch and Test. The previous test just confirmed that the form was submittedt but didn't check whether the selected event was fired. The new one does.

          Show
          ulrich.staerk Ulrich Stärk added a comment - Patch and Test. The previous test just confirmed that the form was submittedt but didn't check whether the selected event was fired. The new one does.
          Hide
          ulrich.staerk Ulrich Stärk added a comment -

          cleaned it up a bit

          Show
          ulrich.staerk Ulrich Stärk added a comment - cleaned it up a bit
          Hide
          ulrich.staerk Ulrich Stärk added a comment -

          patch against 5.1 branch

          will conflict with the patch for TAP5-749 in linksubmit.js, so be sure to merge them correctly.

          Show
          ulrich.staerk Ulrich Stärk added a comment - patch against 5.1 branch will conflict with the patch for TAP5-749 in linksubmit.js, so be sure to merge them correctly.

            People

            • Assignee:
              igor.drobiazko Igor Drobiazko
              Reporter:
              ulrich.staerk Ulrich Stärk
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development