You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2013/06/04 19:33:20 UTC

[jira] [Created] (TAP5-2126) TAP5-2063 fix (multi-valued parameters in Link) conflicts with use of ActivationRequestParameter and PageLink.parameters parameter

Howard M. Lewis Ship created TAP5-2126:
------------------------------------------

             Summary: TAP5-2063 fix (multi-valued parameters in Link) conflicts with use of ActivationRequestParameter and PageLink.parameters parameter
                 Key: TAP5-2126
                 URL: https://issues.apache.org/jira/browse/TAP5-2126
             Project: Tapestry 5
          Issue Type: Bug
          Components: tapestry-core
    Affects Versions: 5.3.7, 5.4
            Reporter: Howard M. Lewis Ship
            Priority: Blocker


Imagine a page that has an @ActivationRequestParameter with name "page" (this is for a search results page).

To navigate between pages of the overall result set, the PageLink uses the parameters parameter to set the page:

    <t:pagelink page="xxx" parameters="{ page: nextPage }"> ...

In 5.3.6, this would render as:

   /xxx?page=Y     (where Y was the value of nextPage)

In 5.3.7 and 5.4, this renders incorrect as:

   /xxx?page=A&page=B  (where A is the current value of the page field, and B is the value of nextPage)

End result: unable to navigate to the next page! 

I believe the fix for this is to introduce a forceAttribute(String,Object) that overrides, rather than merges, the values.  The parameters parameter will force attributes.

If that is insufficient, applications can create their own custom linking components, which use the Link interface directly, to get exactly what they need. All of the necessary APIs are public.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira