[
https://issues.apache.org/jira/browse/WICKET-1511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587753#action_12587753
]
Roy van Rijn commented on WICKET-1511:
--------------------------------------
This is due to the fact PageParameters uses a ValueMap which is basicly a
HashMap...
Possible solutions:
- Change "ValueMap extends HashMap" into either LinkedHashMap (or maybe TreeMap)
- Create a special OrderedPageParameters class for these situations which has a
LinkedHashMap (or maybe TreeMap)
The first solution is a bit tricky because ValueMap is used a lot troughout the
code, and using LinkedHashMap adds a bit of overhead.
Any other suggestions?
> Control BookmarkablePageLink Parameter's order
> ----------------------------------------------
>
> Key: WICKET-1511
> URL: https://issues.apache.org/jira/browse/WICKET-1511
> Project: Wicket
> Issue Type: Wish
> Components: wicket
> Affects Versions: 1.3.2
> Reporter: Takeshi Matsuba
>
> I want to control parameter's order
> At Application class ,WebPage class is mounted.
> mountBookmarkablePage("/page", Hoo.class);
> At WebPage class, BookmarkablePageLink created.
> PageParameters param = new PageParameters();
> param.put("param1", "string1");
> param.put("param2", "string2");
> BookmarkablePageLink link = new BookmarkablePageLink("link", Hoo.class,
> param);
> I expect that URL like this.
> /page/param1/string1/param2/string2
> But actual like this.
> /page/param2/string2/param1/string1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.