On Wed, 09 Apr 2008, John Patterson wrote:
> I like the type-safe getModelObject() and of course it is optional to  
> specify a type.

Not entirely

  "It is possible that future versions of the Java
  programming language will disallow the use of raw types."

  http://java.sun.com/docs/books/jls/third_edition/html/typesValues.html#110257

Furthermore, if you have

public class DropDownChoice<T> ... {
... 
    public DropDownChoice(String id, IModel<T> default, List<T> choices)

you cannot just use the type for the model and skip it for 
the Component; AFAIK this does not work:

    DropDownChoice<?> fooSelection = new DropDownChoice<?>("fooSelection",
        new Model<Foo>(foo), fooList);

Best wishes,
Timo

-- 
Timo Rantalaiho           
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

Reply via email to