Hi,

 

Working on my first application using 1.4.x and generics and have a
question regarding the use of SortableDataProvider. Within my extensions
of this class I quite commonly obtain the id of an object within the
iterator method and then load the object via a LoadableDetchableModel
within the model method. 

 

My question is how to implement such an approach using the new generic
classes. For example, the generic model method has the signature public
IModel<T>  model(T object) but using the id based approach I would pass
in a Long and return a model containing my domain model. The signature
assumes the method parameter and model returned operate on the same
type.

 

Anyone tell me what I'm missing or if my approach is flawed?

 

Thanks,

Jonny
 
--------------------------------------------------------

This email message and any attached files are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. Any 
unauthorized review, use, disclosure or distribution of this email message is 
prohibited. If you are not the intended recipient, please inform the sender by 
reply email and destroy all copies of the original message and your reply. If 
you are the intended recipient, please be advised that the content of this 
message is subject to access, review and disclosure by the sender's Email 
System Administrator.

Reply via email to