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

LinkSubmit Broken With Client-side Validation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.4
    • 5.4
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: