Hey, I'm having some issues with pageparameters. I'm upgrading from wicket
1.4.x to 1.6.x. Most is done, however, I can't get pageparameters to work
properly.
-- MainApp defines how I mount the pages, i.e. with two optional parameters
(type and id):
-- HomePage.java is nothing special but just loads a bunch of stuff,
including BlogPanel (yeah, it's for a blog, how did you guess?) which
includes a BlogDataView
-- BlogDataView, if in the url I have somthing like /post/50, it should load
the page with post 50 and scroll to the right post, hence the 'if (blogid >
0)':
All this works fine, but I have included in my homepage some panels with
links to specific posts. In that case, the right page/post must be loaded.
So I have stuff like this:
However, the PageParameters are not set. The URL isn't updated properly and
always ends with: '/post/62' (followed by '?2' or something, but that
doesn't matter a lot). I, as a test, changed 'pars.add("type","post")'
'pars.add("type","test")', but still get '/post/62'. I must be missing
something, but I just can't get to it.
Oh yeah, the links in the source code of the generated webpage:
or, depending how the page was loaded (/post/xx or without parameters):
Should I implement some kind of ILinkListener or how can I generate the URL
properly (so it gets to /post/xx)? Or maybe just: why are the pageparameters
not right? (That might be enough to get to the right answer, I suppose - it
used to work in Wicket 1.4.x).
Thanks, Kurt
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/pageparameters-in-link-onclick-tp4654611.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]