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

LinkSubmit Broken With Client-side Validation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.4
    • Component/s: None
    • Labels:
      None

      Description

      This was confirmed on the mailing list by one other user of 5.4 alpha 15.

      Example tml;
      <!DOCTYPE html>
      <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd">
      <head>
      <title>Bob</title>
      </head>
      <body>
      <t:form>
      <t:textfield value="bob" validate="required" />
      <t:linksubmit>Link Submit</t:linksubmit>
      <t:submit />
      </t:form>
      </body>
      </html>

      Example java;
      @Property
      private String bob_;

      Clicking the linksubmit causes a POST regardless of the client-side validation on textfield bob, and when the page reloads we see the validation message.

      Clicking the submit causes no POST and client-side validation appears immediately.

      Thanks!
      Peter

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              llama-king Peter H
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: