Isn't there a static wrapper method on Model that takes a List?

On Sun, Jul 27, 2008 at 9:45 PM, Mark Derricutt <[EMAIL PROTECTED]> wrote:
> hey all,
>
> Last night I was migrating some old code away from Wicket 2.0 over to Wicket
> 1.4-m3 and had to change my backing API slightly.
>
> I had a Model instance that received a List<User> from my back end which was
> returned as Object, genericising this I expected to simply use
> Model<List<User>> but soon discovered that Model<> required a Serializable
> (quite understandable), but given that the List interface isn't
> Serialiazable I had to change my API to return an ArrayList<User> instead (I
> could simply created a new ArrayList and added the List contents, which
> would be better).
>
> It's not really a big issue but I wondered if how other people were takling
> this?  For Model's wrapping collections, are you all using ArrayList or some
> other concrete implementation?
>
> --
> "It is easier to optimize correct code than to correct optimized code." --
> Bill Harlan
>

Reply via email to