Tapestry 5
  1. Tapestry 5
  2. TAP5-157

Add a LinkSubmit component, for submitting a Form via a clickable link

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.15
    • Fix Version/s: 5.0.16
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      Issue for tracking adding the Tapestry 4 LinkSubmit component to Tapestry 5

      1. LinkSubmit.zip
        0.9 kB
        Christian Köberl

        Activity

        Hide
        Christian Köberl added a comment -

        Here is a simple LinkSubmit component that I made for our projects.

        I used a Submit component with display:none and a link calling the click of the submit. That's because otherwise the Form's onsubmit event is not raised (that's needed for client side validation). Seems a bit clumsy, maybe somebody has a better idea (maybe after AJAX, JS support is coded).

        Show
        Christian Köberl added a comment - Here is a simple LinkSubmit component that I made for our projects. I used a Submit component with display:none and a link calling the click of the submit. That's because otherwise the Form's onsubmit event is not raised (that's needed for client side validation). Seems a bit clumsy, maybe somebody has a better idea (maybe after AJAX, JS support is coded).
        Hide
        Christian Köberl added a comment -

        We had a problem with JavaScript in IE6 and this component.

        I changed the render code to:
        writer.element("a"
        ,"href", "#"
        ,"onclick", "document.getElementById('" + submitButton.getClientId() + "').click();return false;"
        );

        Show
        Christian Köberl added a comment - We had a problem with JavaScript in IE6 and this component. I changed the render code to: writer.element("a" ,"href", "#" ,"onclick", "document.getElementById('" + submitButton.getClientId() + "').click();return false;" );
        Hide
        Howard M. Lewis Ship added a comment -

        I've changed this to a bug, since this is a pretty critical feature of Tapestry 4 that has been sorely missed in Tapestry 5.

        Show
        Howard M. Lewis Ship added a comment - I've changed this to a bug, since this is a pretty critical feature of Tapestry 4 that has been sorely missed in Tapestry 5.
        Hide
        Howard M. Lewis Ship added a comment -

        Note: I wrote my own version of the component (I didn't use the attachment). It's based on some work I did for Ping Identity recently, released with their verbal permission.

        Show
        Howard M. Lewis Ship added a comment - Note: I wrote my own version of the component (I didn't use the attachment). It's based on some work I did for Ping Identity recently, released with their verbal permission.

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Tim Sawyer
          • Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development