You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Igor Vaynberg <ig...@gmail.com> on 2009/07/02 17:42:34 UTC

Re: MixedParamUrlCodingStrategy IllegalArgumentException: "Too many path parts" due to some javascript

looks like the js lib is trying to load an image by creating a
relative path which is hitting your wicket page.

-igor

On Thu, Jul 2, 2009 at 3:56 AM, Daniele Dellafiore<il...@gmail.com> wrote:
> Hi everyone. I have integrated highslide JS to my application (well,
> the web designer did). Now I have a wicket Page with, in wicket:head
>
>   <script type="text/javascript">
>      hs.registerOverlay({
>          overlayId: 'closebutton',
>          position: 'top right',
>          fade: 2 // fading the semi-transparent overlay looks bad in IE
>      });
>
>
>      hs.graphicsDir = 'highslide/graphics/';
>      hs.wrapperClassName = 'borderless';
>   </script>
>
> now when I load the page I receive a
>
> WARN  - DataRequestCycle           - Handling exception for request
> [RequestCycle@15efa6a thread=3737059@qtp-18621578-3], exception:
> java.lang.IllegalArgumentException: 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)
>
>
> debugging the decodeParameters method, I get that the two parameters
> have these values:
>
> urlFragment
>         (java.lang.String) /highslide/graphics/outlines/drop-shadow.png
> urlParameters
>         (java.util.HashMap<K,V>) {}
>
> Now, I do not understand perfectly how this stuff works, I just did
> not expect any javascript to interfer with my URL strategy but it
> does.
> You have any suggestion?
>
> Ah, everything works perfectly, I just I have this exception.
>
> --
> Daniele Dellafiore
> http://blog.ildella.net
> http://twitter.com/ildella
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org