Create a quickstart and attach it to ticket in Jira On Sat, Nov 13, 2010 at 12:11 PM, Alexander Monakhov <[email protected]>wrote:
> Hello, guys! > I've expirienced interesting issue: when I mount page that contains > Form instance with IndexedHybridUrlCodingStrategy, when I try to load > this page the following error occurred: > > WicketMessage: Not all parameters were encoded. Make sure all > parameter names are integers in consecutive order starting with zero. > Current parameter names are: [wicket:interface] > > Root cause: > > org.apache.wicket.WicketRuntimeException: Not all parameters were > encoded. Make sure all parameter names are integers in consecutive > order starting with zero. Current parameter names are: > [wicket:interface] > at > org.apache.wicket.request.target.coding.IndexedHybridUrlCodingStrategy.appendParameters(IndexedHybridUrlCodingStrategy.java:94) > at > org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.encode(HybridUrlCodingStrategy.java:431) > at > org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.pathForTarget(WebRequestCodingStrategy.java:522) > at > org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.encode(WebRequestCodingStrategy.java:254) > at org.apache.wicket.RequestCycle.encodeUrlFor(RequestCycle.java:811) > at org.apache.wicket.RequestCycle.urlFor(RequestCycle.java:927) > at org.apache.wicket.RequestCycle.urlFor(RequestCycle.java:976) > at org.apache.wicket.Component.urlFor(Component.java:3425) > at > org.apache.wicket.markup.html.form.Form.onComponentTag(Form.java:1871) > at org.apache.wicket.Component.renderComponent(Component.java:2657) > at > org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1538) > at org.apache.wicket.Component.render(Component.java:2517) > at > org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1440) > at > org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1554) > at org.apache.wicket.Page.onRender(Page.java:1575) > at org.apache.wicket.Component.render(Component.java:2517) > at org.apache.wicket.Page.renderPage(Page.java:913) > at > org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:186) > at > org.apache.wicket.request.target.coding.HybridUrlCodingStrategy$HybridBookmarkablePageRequestTarget.respond(HybridUrlCodingStrategy.java:971) > at > org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105) > at > org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258) > at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) > at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436) > at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) > at > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484) > at > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:317) > > > So, I tried to localize problem and I found that when form is rendered > url for form submittion is generated with 'wicket:interface' > parameter. But IndexedHybridUrlCodingStrategy handles only indexed > parameters. In this case, I guess, it isn't possible to use > IndexedHybridUrlCodingStrategy on pages with Form instances. Am I > right? > > Best regards, Alexander. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
