|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
MixedParamUrlCodingStrategy IllegalArgumentException: "Too many path parts" due to some javascriptHi 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@... For additional commands, e-mail: users-help@... |
|
|
Re: MixedParamUrlCodingStrategy IllegalArgumentException: "Too many path parts" due to some javascriptlooks 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<ildella@...> 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@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |