Help in ajax repainting of table

2008-02-03 Thread Vijay Dharap
Hi, I am fairly new to world of wicket. so my issue might be something very trivial. I am using a simple form to input some fields. and i want to update the table below in the same page with the newly entered info in the form above. Page should not refresh. table should be updated through

Re: Help in ajax repainting of table

2008-02-03 Thread Igor Vaynberg
what happens if you change ajaxbutton to regular button? does the update happen properly then? -igor On Feb 3, 2008 1:41 AM, Vijay Dharap [EMAIL PROTECTED] wrote: Hi, I am fairly new to world of wicket. so my issue might be something very trivial. I am using a simple form to input some

Re: Help in ajax repainting of table

2008-02-03 Thread Timo Rantalaiho
On Sun, 03 Feb 2008, Vijay Dharap wrote: Can anyone help pinpoint what i am doing wrong? You never create a new FeeModel instance but just keep on editing the same one and adding it to the list multiple times? Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL:

Re: Help in ajax repainting of table

2008-02-03 Thread Vijay Dharap
Hi Igor, If I use regular submit button and override the onsubmit of the feeForm and create a new page just to display the fee Listing page like below, protected void onSubmit() { log.debug(form got submitted+getModelObject()); ListFees listFees = new ListFees();

Re: Help in ajax repainting of table

2008-02-03 Thread Vijay Dharap
Oh may be. This whole model concept is still not very clear to me. I will work on this one angle. Late night for me now. Would get back to you on this one tomorrow. Btw.. where should i create the new FeeModel instance? Guys, *Thanks A Lot for all the replies!* Its encouraging for nOOb like

Re: Help in ajax repainting of table

2008-02-03 Thread Igor Vaynberg
create a new instance of page, why would you do that. it should simply be something like: onsubmit() { List list=getList(); Object object=getObject(); list.getObject(); } if everything is wired properly the page should refresh and you should see updated info. -igor On Feb 3, 2008 10:40 AM,

Re: Help in ajax repainting of table

2008-02-03 Thread Timo Rantalaiho
On Mon, 04 Feb 2008, Vijay Dharap wrote: I will work on this one angle. Late night for me now. Would get back to you on this one tomorrow. Btw.. where should i create the new FeeModel instance? Well, in reality you would not typically use a new IModel instance, but a new domain object or