datatable delete

2009-12-22 Thread Sam Barrow
if i have a link in a row of a datatable that deletes an item, how do i
make that row disappear? or just refresh the whole table?


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: datatable delete

2009-12-22 Thread Igor Vaynberg
the table refreshes on every render, so as long as your idataprovider
does not retrieve the row after you delete it it will be gone.

sometimes it pays to simply try and see, most things will work as expected.

-igor

On Tue, Dec 22, 2009 at 9:55 AM, Sam Barrow s...@sambarrow.com wrote:
 if i have a link in a row of a datatable that deletes an item, how do i
 make that row disappear? or just refresh the whole table?


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: datatable delete

2009-12-22 Thread Sam Barrow
that's how i thought it work, but it doesnt at all for me, ive tried so
many times. i have to re-click the link to the page, even a refresh with
the f5 key doesnt get rid of the missing row.

On Tue, 2009-12-22 at 09:59 -0800, Igor Vaynberg wrote:
 the table refreshes on every render, so as long as your idataprovider
 does not retrieve the row after you delete it it will be gone.
 
 sometimes it pays to simply try and see, most things will work as expected.
 
 -igor
 
 On Tue, Dec 22, 2009 at 9:55 AM, Sam Barrow s...@sambarrow.com wrote:
  if i have a link in a row of a datatable that deletes an item, how do i
  make that row disappear? or just refresh the whole table?
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: datatable delete

2009-12-22 Thread Igor Vaynberg
then check your delete logic, or set a breakpoint in your dataprovider
and see why the row entity is still being retrieved.

-igor

On Tue, Dec 22, 2009 at 10:03 AM, Sam Barrow s...@sambarrow.com wrote:
 that's how i thought it work, but it doesnt at all for me, ive tried so
 many times. i have to re-click the link to the page, even a refresh with
 the f5 key doesnt get rid of the missing row.

 On Tue, 2009-12-22 at 09:59 -0800, Igor Vaynberg wrote:
 the table refreshes on every render, so as long as your idataprovider
 does not retrieve the row after you delete it it will be gone.

 sometimes it pays to simply try and see, most things will work as expected.

 -igor

 On Tue, Dec 22, 2009 at 9:55 AM, Sam Barrow s...@sambarrow.com wrote:
  if i have a link in a row of a datatable that deletes an item, how do i
  make that row disappear? or just refresh the whole table?
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: datatable delete

2009-12-22 Thread Sam Barrow
its the dataprovider, i was supplying it with a collection of rows in
the constructor, rather than getting the data fresh inside the
dataprovider. thanks!

On Tue, 2009-12-22 at 10:05 -0800, Igor Vaynberg wrote:
 then check your delete logic, or set a breakpoint in your dataprovider
 and see why the row entity is still being retrieved.
 
 -igor
 
 On Tue, Dec 22, 2009 at 10:03 AM, Sam Barrow s...@sambarrow.com wrote:
  that's how i thought it work, but it doesnt at all for me, ive tried so
  many times. i have to re-click the link to the page, even a refresh with
  the f5 key doesnt get rid of the missing row.
 
  On Tue, 2009-12-22 at 09:59 -0800, Igor Vaynberg wrote:
  the table refreshes on every render, so as long as your idataprovider
  does not retrieve the row after you delete it it will be gone.
 
  sometimes it pays to simply try and see, most things will work as expected.
 
  -igor
 
  On Tue, Dec 22, 2009 at 9:55 AM, Sam Barrow s...@sambarrow.com wrote:
   if i have a link in a row of a datatable that deletes an item, how do i
   make that row disappear? or just refresh the whole table?
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org