You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Matías Tito <mt...@zauber.com.ar> on 2009/03/20 18:03:20 UTC

Diference between model's

I'm starting on wicket and I don't underdestand diferences between
LoadableDetachableModel and DetachableModel.


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


Re: Diference between model's

Posted by James Carman <jc...@carmanconsulting.com>.
There's no such thing as DetachableModel (it's not in the API).  All
models are "detachable" (meaning they implement IDetachable).  The
IDetachable interface allows for objects to clean up after themselves.
 By default, all models have that opportunity (for some, you have to
make sure you call the detach method, though).

On Sat, Mar 21, 2009 at 1:41 AM, Brill Pappin <br...@pappin.ca> wrote:
> I'm likely not the correct person to answer this clearly, but I'm sure
> someone will correct me if I get it wrong :)
>
> Essentially the Loadable version has the load() method which is called when
> the model must be initialized from some other source (as in from a database
> when you always want the data refreshed).
>
> so, a  LoadableDetachableModel is just an implementation of a
> DetachableModel that makes reinitializing the data easier.
>
>
> - Brill
>
>
> On 20-Mar-09, at 1:03 PM, Matías Tito wrote:
>
>> I'm starting on wicket and I don't underdestand diferences between
>> LoadableDetachableModel and DetachableModel.
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>

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


Re: Diference between model's

Posted by Brill Pappin <br...@pappin.ca>.
I'm likely not the correct person to answer this clearly, but I'm sure  
someone will correct me if I get it wrong :)

Essentially the Loadable version has the load() method which is called  
when the model must be initialized from some other source (as in from  
a database when you always want the data refreshed).

so, a  LoadableDetachableModel is just an implementation of a  
DetachableModel that makes reinitializing the data easier.


- Brill


On 20-Mar-09, at 1:03 PM, Matías Tito wrote:

> I'm starting on wicket and I don't underdestand diferences between
> LoadableDetachableModel and DetachableModel.
>
>
> ---------------------------------------------------------------------
> 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