RE: Question concerning component class

2012-10-22 Thread Nuno Pedro Jacinto
time. Once again thank you. Cheers, Nuno -Original Message- From: Sven Meier [mailto:s...@meiers.net] Sent: 22 October 2012 10:13 To: dev@wicket.apache.org Subject: Re: Question concerning component class >Can someone explain me why you are using the data field to store the IMo

Re: Question concerning component class

2012-10-22 Thread Sven Meier
Can someone explain me why you are using the data field to store the IModel? Memory optimization. when we look at all the access to the get method we can see that it excludes always the first element if the model is set. If the model is set, Components knows it to be at index 0:

Question concerning component class

2012-10-21 Thread Nuno Pedro Jacinto
Good afternoon, Can someone explain me why you are using the data field to store the IModel? I saw the comment on the model flag concerning the possibility of a model implementing also the Behaviour interface, what makes sense, but when we look at all the access to the get method we can see that