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

2009-07-02 Thread Igor Vaynberg
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 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
>
>   
>      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';
>   
>
> now when I load the page I receive a
>
> WARN  - DataRequestCycle           - Handling exception for request
> [requestcy...@15efa6a thread=3737...@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) {}
>
> 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-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



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

2009-07-02 Thread Daniele Dellafiore
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

   
  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';
   

now when I load the page I receive a

WARN  - DataRequestCycle   - Handling exception for request
[requestcy...@15efa6a thread=3737...@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) {}

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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org