Bugs item #1423820, was opened at 2006-02-03 16:23
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1423820&group_id=119783
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Jonathan Locke (jonathanlocke)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem with URL handling
Initial Comment:
The new Slider example in wicket-sandbox does not quite
work. I think the problem is in some aspect of request
cycle url parsing/handling and I no longer understand
that code, but the URL looks like it's being mangled.
What ought to be a path=0/... parameter is turning out
to be path0/... (no equals sign). The rest of the
processing then fails because wicket cannot find the
page in the page map.
It could be that there is some assumption in the core
that a form will not do more than one POST at a time.
In the case of automatic sprockets, this is not true.
The Applet class is an IFormSubmitListener which
receives the updated model via a form post from the
applet (at any time, but particularly just before any
containing form submits). This occurs automatically in
the Slider example via javascript in the onSubmit of
the FORM tag (see Home.html). But then the actual form
submit happens and subsequently, something goes wrong
trying to get back to the Home page again (the value is
actually submitted and is correct in Home.java's form's
onSubmit() method) and we get this exception:
ERROR - RequestCycle - For input string:
"0/slider?path0"
java.lang.NumberFormatException: For input string:
"0/slider?path0"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:456)
at java.lang.Integer.parseInt(Integer.java:497)
at wicket.Session.getPage(Session.java:345)
at
wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPage(DefaultRequestTargetResolverStrategy.java:146)
at
wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRequestTargetResolverStrategy.java:89)
at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(AbstractCompoundRequestCycleProcessor.java:48)
at wicket.RequestCycle.step(RequestCycle.java:931)
at wicket.RequestCycle.steps(RequestCycle.java:1040)
at wicket.RequestCycle.request(RequestCycle.java:524)
at
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:205)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
at
org.mortbay.http.HttpContext.handle(HttpContext.java:1808)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
at
org.mortbay.http.HttpContext.handle(HttpContext.java:1758)
at
org.mortbay.http.HttpServer.service(HttpServer.java:879)
at
org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501)
INFO - MarkupCache - Loading markup
from
file:/C:/Projects/wicket/wicket/target/classes/wicket/markup/html/pages/ExceptionErrorPage.html
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1423820&group_id=119783
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop