final Link<?> link = new BookmarkablePageLink<Void>("a-contact",
if you are not intending on using the model use <?> which will help enforce that -igor On Sun, May 24, 2009 at 1:07 PM, Luther Baker <lutherba...@gmail.com> wrote: > On Sat, May 23, 2009 at 4:34 PM, Igor Vaynberg <igor.vaynb...@gmail.com>wrote: > >> final Link<?> link=.... >> >> -igor >> > > @James > The seems to work just fine: > > final Link<Void> link = new BookmarkablePageLink<Void>("a-contact", ...); > > > @Igor > Just wanted to clarify ... it is hard to tell exactly what you're > suggesting: > > final Link<?> link = new BookmarkablePageLink<Void>("a-contact", > final Link<?> link = new BookmarkablePageLink("a-contact", > > I'm also fine doing it the old way (no type parameter). Just wasn't sure > what the suggested best practice was going to be. > > -Luther > > > > >> >> On Sat, May 23, 2009 at 12:55 PM, James Carman >> <jcar...@carmanconsulting.com> wrote: >> > BookmarkablePageLink<Void> perhaps? >> > >> > On Sat, May 23, 2009 at 2:05 PM, Luther Baker <lutherba...@gmail.com> >> wrote: >> >> I'm afraid I'm late to the party and that this may have been discussed >> >> 'before' I moved to 1.4 - but is there an established best practice to >> >> handle something like BookmarkablePageLink ... when I'm not going to use >> a >> >> model? >> >> >> >> Can I confidently just leave the Type off? Is that best practice? or >> should >> >> we pick some well-known type? ahh .. that sounds wrong. >> >> >> >> final Link<String> link = new >> >> BookmarkablePageLink<String>("app-title", Home.class); >> >> vs >> >> final Link link = new BookmarkablePageLink("app-title", >> Home.class); >> >> >> >> I'm one of those 'hate yellow squigglies' kinda folks so it feels >> 'funny' >> >> ... had to ask. >> >> >> >> Thanks, >> >> >> >> -Luther >> >> >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> > For additional commands, e-mail: users-h...@wicket.apache.org >> > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org