[
https://issues.apache.org/jira/browse/WICKET-2245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Francisco Treacy updated WICKET-2245:
-------------------------------------
Description:
Say I mount MyBookmarkablePage like so:
mount(new IndexedHybridUrlCodingStrategy("/my/bookmarkable",
MyBookmarkablePage.class));
where
public MyBookmarkablePage() {
(...)
}
public MyBookmarkablePage(PageParameters params) {
(...)
}
When I call http://localhost:8080/app/my/bookmarkable (just that plain
url, no trailing nothing), then I never get into the no-args
constructor, always in the params one. This because the params object
comes with "0"="", which I feel is wrong.
Consequently, params.containsKey("0") returns true - and here I have
to go and check if the value is not empty.
Note I'm using IndexedHybridUrlCodingStrategy.
was:
Say I mount MyBookmarkablePage like so:
mount(new IndexedHybridUrlCodingStrategy("/my/bookmarkable",
MyBookmarkablePage.class));
where
public MyBookmarkablePage() {
(...)
}
public MyBookmarkablePage(PageParameters params) {
(...)
}
When I call http://localhost:8080/app/my/bookmarkable (just that plain
url, no trailing nothing), then I never get into the no-args
constructor, always in the params one. This because the params object
comes with "0"="", which I feel is wrong.
Consequently, params.containsKey("0") returns true - and here I have
to go and check if the value is not empty.
> PageParameters always non-empty
> -------------------------------
>
> Key: WICKET-2245
> URL: https://issues.apache.org/jira/browse/WICKET-2245
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC2
> Environment: Ubuntu 8.10 / Java 1.6 / Firefox 3.0.6
> Reporter: Francisco Treacy
> Priority: Minor
>
> Say I mount MyBookmarkablePage like so:
> mount(new IndexedHybridUrlCodingStrategy("/my/bookmarkable",
> MyBookmarkablePage.class));
> where
> public MyBookmarkablePage() {
> (...)
> }
> public MyBookmarkablePage(PageParameters params) {
> (...)
> }
> When I call http://localhost:8080/app/my/bookmarkable (just that plain
> url, no trailing nothing), then I never get into the no-args
> constructor, always in the params one. This because the params object
> comes with "0"="", which I feel is wrong.
> Consequently, params.containsKey("0") returns true - and here I have
> to go and check if the value is not empty.
> Note I'm using IndexedHybridUrlCodingStrategy.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.