Re: [Wicket-user] Onsubmit giving error? Missing model?
You don't specify a model at all form or youre form (compound model) or the radiochoice.Where should the submit values go into if you don't supply a model under youre form components.johan On 2/28/06, Nino Wael <[EMAIL PROTECTED]> wrote: HiIm having some trouble getting my onsubmit to work, looking at one of the simple examples it looks like im doing the right thing(ive been looking at http://www.wicket-library.com/wicket-examples/signin).So hints on what im doing wrong and possible howto fix it will be much appreciated.Ive attached my HTML file my java file and the error page. Regards Nino
[Wicket-user] Onsubmit giving error? Missing model?
Hi Im having some trouble getting my onsubmit to work, looking at one of the simple examples it looks like im doing the right thing(ive been looking at http://www.wicket-library.com/wicket-examples/signin). So hints on what im doing wrong and possible howto fix it will be much appreciated. Ive attached my HTML file my java file and the error page. Regards Nino Title: JOBINDSATS Sygedagpengemodtagere Tilgang FormPage feedbackmessages will be put here Index.java Description: Index.java Title: Unexpected RuntimeException  Unexpected RuntimeException wicket.WicketRuntimeException: Method public abstract void wicket.markup.html.form.IFormSubmitListener.onFormSubmitted() of interface java.lang.reflect.Method threw an exceptionat wicket.protocol.http.WebRequestCycle.invokeInterface(WebRequestCycle.java:587)at wicket.protocol.http.WebRequestCycle.invokeInterface(WebRequestCycle.java:651)at wicket.protocol.http.WebRequestCycle.callComponentListener(WebRequestCycle.java:492)at wicket.protocol.http.WebRequestCycle.parseRequest(WebRequestCycle.java:153)at wicket.RequestCycle.request(RequestCycle.java:408)at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208)at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:234)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:790)at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)Caused by: java.lang.reflect.InvocationTargetExceptionat 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:578)... 21 moreCaused by: java.lang.IllegalStateException: Attempt to set model object on null model of component: form:radiogroupat wicket.Component.setModelObject(Component.java:1299)at wicket.markup.html.form.RadioGroup.updateModel(RadioGroup.java:109)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:632)at wicket.markup.html.form.Form.visitFormComponents(Form.java:302)at wicket.markup.html.form.Form.updateFormComponentModels(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 Component Tree Component tree for [Page class = wicket.PROTO_01.Index, id = 0]: # Path Type Model Object 1 _body wicket.markup.html.BodyOnLoadContainer 2 feedback wicket.markup.html.panel.FeedbackPanel 3 feedback:feedbackul wicket.markup.html.WebMarkupContainer 4 feedback:feedbackul:messages wicket.markup.html.list.ListView [] 5 form wicket.markup.html.form.Form 6 form:LBL_nextpage wicket.markup.html.basic.Label næste side 7 form:_link_0 wicket.markup.html.WebMarkupContainer 8 form:_link_0:_autolink_1 wicket.markup.html.link.BookmarkablePageLink 9 form:_link_2 wicket.markup.html.WebMarkupContainer