You have placed a form inside another form. That can't work. It's not Wicket, it's html. Nested forms in html are not allowed.
Wicket 2.0 provides support for nesting forms, though. But wicket 1.x does not. -Matej balamaci wrote: > Hi Matej, > I tried to issolate the problem in a smaller test example. I did not give > all the details - that the form was inserted through ajax-. At first i tried > a simple test with a form that submitted ok through ajaxsubmitlink. > > But in my project i have a form with a DropDownChoice that loads through > ajax a panel inside the original form, a panel that contains another form - > this form i tried to submit trough ajaxsubmitlink- . > > So i adapted my simple example to include this and yes, it generates an > error - not the same though that was generated in my project, but i guess > that actually it is from http://www.nabble.com/file/3781/test.7z test.7z > the same cause. I think that it is because the form that i try to submit is > inserted dynamically in the DOM, and somehow the ajax engine cannot find the > form by the Id. > > Wicket.Log.Error("Trying to submit form with id '"+formId+"' that is not in > document."); > > I have uploaded my small example as well > Sorry about 7z archive. It can be extracted with http://www.7-zip.org/ > > > Matej Knopp wrote: >> Can you please provide some source code? >> >> -Matej >> >> balamaci wrote: >>> Hi, >>> I was using an AjaxSubmitLink but no method seemed to be executed,neither >>> the onSubmit of the link, or the form's or onError. When looking at the >>> java >>> console from Firefox it says error: form has no propertyes, in the code >>> >>> function wicketSerializeForm(form) { >>> var result = ""; >>> for (var i = 0; i < form.elements.length; ++i) { >>> var e = form.elements[i]; >>> if (e.name && e.name != "" && !e.disabled) { >>> result += wicketSerialize(e); >>> } >>> } >>> return result; >>> } >>> >>> the line >>> for (var i = 0; i < form.elements.length; ++i) { >>> >>> Thanks. >> >> ------------------------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your job >> easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user