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

Add a @QueryParameter annotation for parameters to event handler method

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.15
    • 5.2.0
    • None
    • None

    Description

      It would be nice, is some cases, to have Tapestry map query parameters to event handler method parameters, rather than path info. This is typically about the Ajax case, where it is more reliable (and easier) to take a URL and add query parameters to it than it is to add extra path info.

      public void onActionFromAjaxWidget(@QueryParameter("action") String widgetAction, @QueryParameter("count") int count)

      { .... }

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: