You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk> on 2008/03/29 12:56:17 UTC

generic loadabledetachablemodel planed for 1.5?

So is there any?

Basicly we could almost get away with having only one model for this I 
guess? Making the load method abstract...

-- 
-Wicket for love

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


Re: generic loadabledetachablemodel planed for 1.5?

Posted by Johan Compagner <jc...@gmail.com>.
a generified version is planned for 1.4 when we switch to java 5

On Sat, Mar 29, 2008 at 3:04 PM, Nino Saturnino Martinez Vazquez Wael <
nino.martinez@jayway.dk> wrote:

> hmm, right I guess I did not express my self correct as usual:)
>
> I wanted to be able to create a model something like this(my memory of
> the generics part are little vague now so bear over with me)..:
>
> new LoadableDetachableModel(cat){
>
> public void LoadableDetachableModel(<E> type)
> {
>
> }
>
> }
>
>
> hmm thinking over it, you might be right I cant exactly see how generics
> solves any of this part, since we need to reduce to some sort of id when we
> detach  anyways..
>
> These Saturday half thought through thoughts:)
>
>
>
>
> Johan Compagner wrote:
> > what is wrong with the LoadableDetachableModel that has an abstract
> load()
> > method that we have now
> >
> > On Sat, Mar 29, 2008 at 12:56 PM, Nino Saturnino Martinez Vazquez Wael <
> > nino.martinez@jayway.dk> wrote:
> >
> >
> >> So is there any?
> >>
> >> Basicly we could almost get away with having only one model for this I
> >> guess? Making the load method abstract...
> >>
> >> --
> >> -Wicket for love
> >>
> >> Nino Martinez Wael
> >> Java Specialist @ Jayway DK
> >> http://www.jayway.dk
> >> +45 2936 7684
> >>
> >>
> >>
> >
> >
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>

Re: generic loadabledetachablemodel planed for 1.5?

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
hmm, right I guess I did not express my self correct as usual:)

I wanted to be able to create a model something like this(my memory of 
the generics part are little vague now so bear over with me)..:

new LoadableDetachableModel(cat){

public void LoadableDetachableModel(<E> type)
{

} 

}


hmm thinking over it, you might be right I cant exactly see how generics solves any of this part, since we need to reduce to some sort of id when we detach  anyways..

These Saturday half thought through thoughts:)




Johan Compagner wrote:
> what is wrong with the LoadableDetachableModel that has an abstract load()
> method that we have now
>
> On Sat, Mar 29, 2008 at 12:56 PM, Nino Saturnino Martinez Vazquez Wael <
> nino.martinez@jayway.dk> wrote:
>
>   
>> So is there any?
>>
>> Basicly we could almost get away with having only one model for this I
>> guess? Making the load method abstract...
>>
>> --
>> -Wicket for love
>>
>> Nino Martinez Wael
>> Java Specialist @ Jayway DK
>> http://www.jayway.dk
>> +45 2936 7684
>>
>>
>>     
>
>   

-- 
-Wicket for love

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


Re: generic loadabledetachablemodel planed for 1.5?

Posted by Johan Compagner <jc...@gmail.com>.
what is wrong with the LoadableDetachableModel that has an abstract load()
method that we have now

On Sat, Mar 29, 2008 at 12:56 PM, Nino Saturnino Martinez Vazquez Wael <
nino.martinez@jayway.dk> wrote:

> So is there any?
>
> Basicly we could almost get away with having only one model for this I
> guess? Making the load method abstract...
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>