In Wicket 2 the Label class is defined as
public class Label extends WebComponent
The Label class inhertis setModelObject from Comonent<T> through the genetric
class WebComponent<T>.
The method
public final Component setModelObject(final T object)
is generic too.
Now If we have code like
Label l = new Label(this, "label", "The label's modelObject");
l.setModelObject("The new modelObject");
alway leads to a warning like
the method setModelObject belongs to the raw type Component...
Declaring Label like
public class Label extends WebComponent<String>
would remove the warning and should not affect any part of wicket. Or am I
wrong?
Stefan Lindner
- Solution for getting rid of Eclipse files Jean-Baptiste Quenot
- Re: Solution for getting rid of Eclipse files Igor Vaynberg
- Re: Solution for getting rid of Eclipse file... Eelco Hillenius
- Shouldn't wicket.markup.html.basic.Label... Stefan Lindner
- Re: Shouldn't wicket.markup.html.bas... Martin Benda
- Re: Shouldn't wicket.markup.htm... Johan Compagner
- RE: Shouldn't wicket.markup... Stefan Lindner
- Re: Solution for getting rid of Eclipse file... Jean-Baptiste Quenot
- Re: Solution for getting rid of Eclipse files Eelco Hillenius
- Re: Solution for getting rid of Eclipse file... Eelco Hillenius
- Re: Solution for getting rid of Eclipse files Johan Compagner
