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