You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Warren Bell <wa...@clarksnutrition.com> on 2008/08/27 06:35:43 UTC

How do you get a LoadableDetachableModel to load again

I have a page that displays a list of items backed by a 
LoadableDetachableModel. The page allows you to delete one item from the 
list and then shows the list less the item you just deleted. How do I 
get the LoadableDetachableModel to load the list of items again after 
the one item has been deleted? I want the page to go back to itself 
after the item is deleted. I do not want to create a new page.

-- 
Thanks,

Warren

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


Re: How do you get a LoadableDetachableModel to load again

Posted by Igor Vaynberg <ig...@gmail.com>.
it may be possible that the model is loaded (getobject) is called
before the object is removed, in which case you have to manually
detach the model by calling .detach() on it - which will cause the
list to be reloaded next time getobject() is called on it.

-igor

On Tue, Aug 26, 2008 at 9:35 PM, Warren Bell <wa...@clarksnutrition.com> wrote:
> I have a page that displays a list of items backed by a
> LoadableDetachableModel. The page allows you to delete one item from the
> list and then shows the list less the item you just deleted. How do I get
> the LoadableDetachableModel to load the list of items again after the one
> item has been deleted? I want the page to go back to itself after the item
> is deleted. I do not want to create a new page.
>
> --
> Thanks,
>
> Warren
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: How do you get a LoadableDetachableModel to load again

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
Call modelchanged?

Warren Bell wrote:
> I have a page that displays a list of items backed by a 
> LoadableDetachableModel. The page allows you to delete one item from 
> the list and then shows the list less the item you just deleted. How 
> do I get the LoadableDetachableModel to load the list of items again 
> after the one item has been deleted? I want the page to go back to 
> itself after the item is deleted. I do not want to create a new page.
>

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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