You are correct, WebPage<T> is for the model type of your page.  This allows
you to do MyObject getObject(), etc.  I, too, am trying to deal with all of
the generics warnings right now and figure out what my strategy will be for
pages without a model.

One suggestion that has been made on the list is for a page that does not
use a model is to use Void, like this:

class MyPage extends WebPage<Void>

Jeremy Thomerson
http://www.wickettraining.com

On Wed, May 7, 2008 at 4:40 PM, Doug Donohoe <[EMAIL PROTECTED]> wrote:

>
> I'm just now using 1.4.  What type of thing is expected for T in
> WebPage<T> ?
>
> It looks like what your model object is.  But if your page doesn't use
> models (perhaps just it's children do), is the correct thing to do this?
>
> class MyPage extends WebPage
>
> I have lots of 'unchecked' and 'raw use' warnings now, so I'd like to know
> what the recommended approach is.
>
> Thanks,
>
> -Doug
> --
> View this message in context:
> http://www.nabble.com/Wicket-1.4-and-generics-tp17115357p17115357.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