I have one idea,

the reason of the warnigs is, that parent of AjaxPagingNavigator is
PagingNavigator,
which has parent Panel ---> that is not parameterized.

The same problem is with LoopItem, which extends the
WebMarkupContainer ---> that is not parameterized.

? could this be the reason ?






Stefan Simik wrote:
> 
> Mhmm, it is meaningful ;) I will know in future, thx
> 
> One of the last occuring warning is, when working with
> MarkupContainer#add(...)  or  #addOrReplace(...)  method.
> 
> Example:  I have a simple AjaxPagingNavigator, to which I add a simple
> ListView
> -----------------------------------------------------------------------
> ListView<Integer> menu = new ListView<Integer>("id", numbers){
>     //....populate metods
> }
> add(menu);        //warning here
> 
> The warning says: 
> "Type safety: The method add(Component...) belongs to the raw type
> MarkupContainer. 
> References to generic type MarkupContainer<T> should be parameterized"
> 
> I cannot find out, what's the warning reason, because ListView self is
> parameterized. 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to