Bugs item #1323936, was opened at 2005-10-11 16:42 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=1323936&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.1 Status: Open Resolution: None Priority: 5 Submitted By: Arjan Zwaan (arjan81) Assigned to: Nobody/Anonymous (nobody) Summary: Exception using hiddenfields on forms without a model Initial Comment: When using a HiddenField, on a Form that submits, without a model you'll get this exception: wicket.WicketRuntimeException: Method public abstract void wicket.markup.html.form.IFormSubmitListener.onFormSubm itted() of interface java.lang.reflect.Method threw an exception at wicket.protocol.http.WebRequestCycle.invokeInterface (WebRequestCycle.java:550) at wicket.protocol.http.WebRequestCycle.invokeInterface (WebRequestCycle.java:606) at wicket.protocol.http.WebRequestCycle.callComponentListen er(WebRequestCycle.java:464) at wicket.protocol.http.WebRequestCycle.parseRequest (WebRequestCycle.java:148) at wicket.RequestCycle.request(RequestCycle.java:408) at wicket.protocol.http.WicketServlet.doGet (WicketServlet.java:196) at wicket.protocol.http.WicketServlet.doPost (WicketServlet.java:222) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service (HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle (ServletHolder.java:358) 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:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle (WebApplicationContext.java:525) at org.mortbay.http.HttpContext.handle (HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service (HttpConnection.java:789) at org.mortbay.http.HttpConnection.handleNext (HttpConnection.java:960) at org.mortbay.http.HttpConnection.handle (HttpConnection.java:806) at org.mortbay.http.SocketListener.handleConnection (SocketListener.java:218) at org.mortbay.util.ThreadedServer.handle (ThreadedServer.java:331) at org.mortbay.util.ThreadPool$PoolThread.run (ThreadPool.java:520)Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source) at java.lang.reflect.Method.invoke (Unknown Source) at wicket.protocol.http.WebRequestCycle.invokeInterface (WebRequestCycle.java:541) ... 21 moreCaused by: java.lang.IllegalStateException: Attempt to set model object on null model at wicket.Component.setModelObject (Component.java:1299) at wicket.markup.html.form.AbstractTextComponent.updateMo del(AbstractTextComponent.java:97) at wicket.markup.html.form.TextField.updateModel (TextField.java:121) at wicket.markup.html.form.Form$9.formComponent (Form.java:585) at wicket.markup.html.form.Form$4.component (Form.java:306) at wicket.MarkupContainer.visitChildren (MarkupContainer.java:630) at wicket.MarkupContainer.visitChildren (MarkupContainer.java:643) at wicket.MarkupContainer.visitChildren (MarkupContainer.java:643) at wicket.MarkupContainer.visitChildren (MarkupContainer.java:643) at wicket.MarkupContainer.visitChildren (MarkupContainer.java:643) at wicket.MarkupContainer.visitChildren (MarkupContainer.java:643) at wicket.MarkupContainer.visitChildren (MarkupContainer.java:643) at wicket.MarkupContainer.visitChildren (MarkupContainer.java:643) at wicket.markup.html.form.Form.visitFormComponents (Form.java:302) at wicket.markup.html.form.Form.updateFormComponentModel s(Form.java:577) at wicket.markup.html.form.Form.process(Form.java:559) at wicket.markup.html.form.Form.onFormSubmitted (Form.java:209) ... 26 more It took me a couple of days to find out it was the HiddenField that was the cause of this problem. Would it be possible to get some identification of the component that causes the exception in the exception message? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1323936&group_id=119783 ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
