Tapestry 5
  1. Tapestry 5
  2. TAP5-922

Allow a null or blank value to be supplied in Link.addParameter(), and render out the parameter name with the missing value

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.0.5
    • Fix Version/s: 5.3
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      I have a query string that I need to append to a Link object, the query string is:

      ?gender=M&country=

      Link lnk = renderLinkSource.createPageRenderLink("SamplePage");

      lnk.addParameter("gender", "M"); // this works

      lnk.addParameter("country", null);

      above line failed with :

      RequestExceptionHandler Unexpected runtime exception: Parameter value was null or contained only whitespace.

      A null parameter should be valid in a URL, sometimes it is needed to have Google Analytics pick up the complete URL even it is null.

        Activity

        Hide
        Hudson added a comment -

        Integrated in tapestry-5.2-freestyle #302 (See https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/302/)

        Show
        Hudson added a comment - Integrated in tapestry-5.2-freestyle #302 (See https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/302/ )

          People

          • Assignee:
            Unassigned
            Reporter:
            Angelo Chen
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development