https://issues.apache.org/jira/browse/WICKET-2245
2009/4/26 Igor Vaynberg <[email protected]>: > weird, open a jira issue. > > -igor > > On Sun, Apr 26, 2009 at 8:14 AM, francisco treacy > <[email protected]> wrote: >> Hi all, >> >> Just mounting urls in our app, I stumbled upon something I believe is >> a bug. As I might be overlooking something else, please confirm - then >> I'll file it to Jira. >> >> 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. Yuck. >> >> I'm using wicket 1.4-rc2. >> >> Francisco >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
