Hi!
Maybe I'm dumb today :-), but I can't access this constructor:
public DropDownChoice(String id, IModel> choices,
IChoiceRenderer renderer)
So I had created new functions using similar generics parameter, and it
also don't work for the DDC equivalent:
private void temp1(String id, IModel> choices,
IChoiceRenderer renderer)
{
}
private void temp2(String id, IModel> choices,
IChoiceRenderer renderer)
{
}
If I call:
temp1("", (IModel>) null, (IChoiceRenderer)
null); // compile
temp2("", (IModel>) null, (IChoiceRenderer)
null); // don't compile
Error is: The method temp2(String, IModel>,
IChoiceRenderer) in the type ... is not applicable for the arguments
(String, IModel>, IChoiceRenderer).
I can't pass anything on the model. Should not the Wicket constructor be
changed to IModel> or what I'm missing?
Adriano
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org