After solving the Ajax problem, it looks like, this is still don't want
to work...
It looks like, that because of setMultiPart(true), the new input Datas
aren't storing into models, thats why the form sends invalid content.
The code that I'm using:
http://users.hszk.bme.hu/~mp695/quickstart.zip
//When I remove the FileUploadField and set the MultiPart to false, than
the form works as intended.
Please help someone.
Thanks
Peter
2009-08-22 13:04 keltezéssel, Major Péter írta:
Hi all,
I have spent hours with the following issue:
I tried to create an Ajax represent of ListEditor (
http://wicketinaction.com/2008/10/building-a-listeditor-form-component/
), but the add button didn't work at all, saying:
ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not
find root <ajax-response> element
After I opened a Wireshark and watched the traffic, I saw that, the
request was fine, but instead of ajax-response I getted always:
HTTP/1.1 302 Moved Temporarily
After googling some time again, I found this:
http://mail-archives.apache.org/mod_mbox/wicket-users/200810.mbox/%3c490466ab.9070...@grons.nl%3e
So I tried to remove my setResponsePage from form#onSubmit and the ajax
worked! When I tried to replace setResponsePage with
RestartResponseException, then the Ajax stopped working again. So the
last solution was, that I added to the form a custom button, and in its
onSubmit did I what I wanted to do in Form#onSubmit.
Summarize:
If you have enabled the MultiPart for a Form, you can't use
setResponsePage or RRE in its onSubmit.
Is this normal behavior for Form? If it is, then can't you write a
little note/JavaDoc about this in Form#setMultiPart() ?
Thanks.
Regards,
Peter Major
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org