Ajax and Form#setMulitPart(true)

2009-08-22 Thread Major Péter
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:

Re: Ajax and Form#setMulitPart(true)

2009-08-22 Thread Major Péter
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

Re: Absolute urls in forms

2009-08-22 Thread Steen Larsen
Haha, Its not me doing the proxy work. Don't know why they consider it a problem, but they would really like absolute urls. /Steen 2009/8/21 Igor Vaynberg igor.vaynb...@gmail.com: thats funny, we worked really had to make all urls relative because it would make it a lot easier to work with

Re: Ajax and Form#setMulitPart(true)

2009-08-22 Thread Marcin Palka
Peter, Have a look into the quickstart project that is attached to my post. It's a simple list editor based on ListView. http://www.nabble.com/file/p25096254/ListEditor.zip ListEditor.zip . Hope it helps. cheers, Marcin -- View this message in context:

Re: Absolute urls in forms

2009-08-22 Thread Erik van Oosten
I've always wondered about that Anyways, you can make all URLs absolute by following the hints in https://issues.apache.org/jira/browse/WICKET-1974. You'll need to patch Wicket as the issue is not yet solved. (I really should make the patch, its soo easy, just have to find time.)

Re: Ajax and Form#setMultiPart(true)

2009-08-22 Thread Major Péter
Thanks, Marcin, but I had problems with ListView and element removing ( see: http://mail-archives.apache.org/mod_mbox/wicket-users/200908.mbox/%3c4a894c62.8070...@sch.bme.hu%3e ) I tried to do this with RepeatingView, now I had tried to solve the problem with RefreshingView (based on this:

Re: Ajax and Form#setMultiPart(true)

2009-08-22 Thread Marcin Palka
Peter, I modified my example to allow removing items. I also modified it to use a RefreshingView instead of a ListView. 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

Re: Ajax and Form#setMultiPart(true)

2009-08-22 Thread Major Péter
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

ajax navigation toolbars not updating when rows are added to initially empty table

2009-08-22 Thread Jason Novotny
Hi, In a nutshell, I have a table that starts off empty and rows are added to it dynamically. So I have a DataTable inside of a WebMarkupContainer where setOutputMarkupId(true) and in the ajax callback I do a target.addComponent(markupContainer). So far so good and the table does update

Re: ajax navigation toolbars not updating when rows are added to initially empty table

2009-08-22 Thread David Leangen
In a nutshell, I have a table that starts off empty and rows are added to it dynamically. Perhaps if you take your table out of the nutshell, it would work? I find that things don't work so well if I put them in a nutshell. Just a thought. ;-)