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

        Tim Sawyer created issue -
        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).
        Christian Köberl made changes -
        Field Original Value New Value
        Attachment LinkSubmit.zip [ 12363137 ]
        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;" );
        Howard M. Lewis Ship made changes -
        Key TAPESTRY-1433 TAP5-157
        Affects Version/s 5.0.3 [ 12312338 ]
        Project Tapestry [ 10573 ] Tapestry 5 [ 12310833 ]
        Component/s Core Components [ 12311677 ]
        Howard M. Lewis Ship made changes -
        Affects Version/s 5.0.15 [ 12313429 ]
        Howard M. Lewis Ship made changes -
        Assignee Howard M. Lewis Ship [ hlship ]
        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.
        Howard M. Lewis Ship made changes -
        Issue Type New Feature [ 2 ] Bug [ 1 ]
        Component/s tapestry-core [ 12312470 ]
        Priority Minor [ 4 ] Major [ 3 ]
        Summary Tapestry 5 doesn't have LinkSubmit component Add a LinkSubmit component, for submitting a Form via a clickable link
        Howard M. Lewis Ship made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 5.0.16 [ 12313427 ]
        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.
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        558d 5h 49m 1 Howard M. Lewis Ship 06/Nov/08 19:45

          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