Hello Mathias,

Well, that looks quite alright to me.
Could you post the generated URL? Do you have more mounts to the same page class?

Regards,
    Erik.


Mathias P.W Nilsson wrote:
Hi!
I'm using MixedParamUrlCodingStrategy and I must miss something in how this
is set up properly

I have mounted the page in init in my application class
mount(new MixedParamUrlCodingStrategy("brand", BrandInterceptor.class,new
String[]{"id"}));

When building up the bookmarkable page link I do this in my Root page

Brand brand = (Brand) item.getModelObject();
PageParameters params = new PageParameters();
params.add( "id",  brand.getId().toString() );
Link brandLink = new BookmarkablePageLink( "brandLink"
,BrandInterceptor.class, params );

But it always ends with this error.
[RequestCycle] Too many path parts, please provide sufficient number of path
parameter names
java.lang.IllegalArgumentException: Too many path parts, please provide
sufficient number of path parameter names
        at
org.apache.wicket.request.target.coding.MixedParamUrlCodingStrategy.decodeParameters(MixedParamUrlCodingStrategy.java:178)

Any pointers on how to solve this?



--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to