generic type on Component represents the type of the modelobject that
component will hold.

eg TextField<Integer> tf=new TextField<Integer>(...);
means that tf.getModelObject() is of type Integer

-igor


On Mon, Apr 21, 2008 at 5:30 PM, mnwicket <[EMAIL PROTECTED]> wrote:
>
>  Ok, so I starting messing around with the new generics version of
>  wicket....and I guess I was a little confused as to how many generics there
>  are.  Silly question is when people are doing development are they turning
>  off all generic warnings in eclipse...that is if you are using eclipse?
>
>  I only ask because I come across components like TextField that takes a
>  ResourceModel...I understand why the ResourceModel would use a generic but
>  in this case am I forced to put <String> on the TextField.
>
>  Another example is AjaxButton that is being added to a form, what generic do
>  I use here?  The forms object model type?  What if the form doesn't have a
>  model, say it is using a ValueMap that is a global member of the form...ie
>  I've seen this usage in some login example of wicket.
>
>  Just looking for some guidance here guys.
>  --
>  View this message in context: 
> http://www.nabble.com/1.4-Generics-tp16819308p16819308.html
>  Sent from the Wicket - Dev mailing list archive at Nabble.com.
>
>

Reply via email to