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

Submit/LinkSubmit's SubmitMode ("mode") parameter does not work serverside

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 5.2.4
    • None
    • tapestry-core
    • None

    Description

      The SubmitMode javadoc says:

      • Defines the client and server-side behavior of a {@link Submit}

        or

        {@link LinkSubmit}

        component.

      • @since 5.2.0

      The client side validation gets disabled as expected. The server side validation does not. There does not seem to be any code for doing this, it seems to always plunge into firing validate events.

      Here's a demo tml:
      <t:form>
      <t:errors />
      <t:textfield value="dummy" validate="required" />
      <t:submit t:id="cancel" mode="CANCEL" />
      <t:linksubmit mode="CANCEL">hmm</t:linksubmit>
      </t:form>

      Attachments

        Issue Links

          Activity

            People

              hlship Howard Lewis Ship
              adamm Adam
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: