I think that MixedParamUrlCodingStrategy is expecting you to specify at
least one parameter - Are you sure you don't want HybridUrlCodingStrategy?

/Gwyn

On Wed, Jun 25, 2008 at 5:18 PM, Mathias P.W Nilsson <[EMAIL PROTECTED]>
wrote:

>
> Hi!
>
> I get this error when trying to make a bookmarkable page.
>
> java.lang.IllegalArgumentException: Too many path parts, please provide
> sufficient number of path parameter names
>
> This is my mouting, mount(new
> MixedParamUrlCodingStrategy("ItemInterceptor",
> ItemInterceptor.class,new String[]{""}));
>
> This is the code for making the link
>
> Brand brand = (Brand) item.getModelObject();
>                                PageParameters params = new
> PageParameters();
>                                params.add( "Brand",
>  brand.getId().toString() );
>                                Link brandLink = new BookmarkablePageLink(
> "brandLink"
> ,ItemInterceptor.class, params );
>
> And it generates this url... I don't know why the slash is there. Anyone
>
> https://localhost/hairless-web/ItemInterceptor/?Brand=76
> --
> View this message in context:
> http://www.nabble.com/Trying-to-make-bookmarkablelink-tp18115889p18115889.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to