Marcin,
I modified my example to allow removing items. I also modified it to use a
RefreshingView instead of a ListView.
Thanks
I think you should read a bit about wicket models. Any component update
should go the following way - first update a model that is bound to a
component and then repaint the component.
Correct, I tought that too.
If you do not use ajax the
component will get updated itself when you press a button of click a link.
Do not use the setResponsePage unless you want to navigate to another page.
It's gonna be a part of an 'Edit my profile' page, and after filling out
the form, an another page should show up, so I'm pretty sure I need that
setResponsePage.
If you do want to use ajax you refresh your component by adding it to the
AjaxRequestTarget.
That's true, this part is working nicely, the components are refreshing
via Ajax. The only problem is, that in the so called submit button,
which will need to save datas into db/ldap, it doesn't get the input.
After some Wireshark again, I saw the following:
When I pressed Forms 'submit' button, than a following POST message was
sent to the server (I'm just posting only the header):
POST
/quickstart-1.0-SNAPSHOT/?wicket:interface=:0:form::IFormSubmitListener:: HTTP/1.1
Host: localhost:8080
The POST message contains(!) the new datas, but the response is the
following:
HTTP/1.1 302 Moved Temporarily
X-Powered-By: Servlet/2.5
Server: Sun GlassFish Enterprise Server v2.1
Location: http://localhost:8080/quickstart-1.0-SNAPSHOT/./
Content-Type: text/html; charset=iso-8859-1
Content-Length: 0
Date: Sun, 23 Aug 2009 00:42:59 GMT
I'm just can't see why is this happening.
A quickstart for the problem:
http://users.hszk.bme.hu/~mp695/quickstart.zip
//If you remove fileuploadfield, and set multipart to false, you can see
the desirable working state
I'm using Wicket 1.4.1
Thanks,
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]