Re: Generic BookmarkablePage

2009-05-25 Thread James Carman
On Sun, May 24, 2009 at 11:16 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 final Link? link = new BookmarkablePageLinkVoid(a-contact,

 if you are not intending on using the model use ? which will help enforce 
 that

Care to elaborate on that?  How does ? assure that folks aren't
going to use the model better than Void?  You can't instantiate a
BookmarkablePageLink?.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Generic BookmarkablePage

2009-05-25 Thread Igor Vaynberg
no, you cannot instantiate ?, but you can instantiate Void and
assign it to ? as per my example below

-igor

On Mon, May 25, 2009 at 6:05 AM, James Carman
jcar...@carmanconsulting.com wrote:
 On Sun, May 24, 2009 at 11:16 PM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 final Link? link = new BookmarkablePageLinkVoid(a-contact,

 if you are not intending on using the model use ? which will help enforce 
 that

 Care to elaborate on that?  How does ? assure that folks aren't
 going to use the model better than Void?  You can't instantiate a
 BookmarkablePageLink?.

 -
 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



Re: Generic BookmarkablePage

2009-05-25 Thread James Carman
Yes, of course.  My bad.  I didn't understand what you meant.  Sorry.

On Mon, May 25, 2009 at 11:38 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 no, you cannot instantiate ?, but you can instantiate Void and
 assign it to ? as per my example below

 -igor

 On Mon, May 25, 2009 at 6:05 AM, James Carman
 jcar...@carmanconsulting.com wrote:
 On Sun, May 24, 2009 at 11:16 PM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 final Link? link = new BookmarkablePageLinkVoid(a-contact,

 if you are not intending on using the model use ? which will help enforce 
 that

 Care to elaborate on that?  How does ? assure that folks aren't
 going to use the model better than Void?  You can't instantiate a
 BookmarkablePageLink?.

 -
 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



Re: Generic BookmarkablePage

2009-05-24 Thread Luther Baker
On Sat, May 23, 2009 at 4:34 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 final Link? link=

 -igor


@James
The seems to work just fine:

final LinkVoid link = new BookmarkablePageLinkVoid(a-contact, ...);


@Igor
Just wanted to clarify ... it is hard to tell exactly what you're
suggesting:

final Link? link = new BookmarkablePageLinkVoid(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:
  BookmarkablePageLinkVoid 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 LinkString link = new
  BookmarkablePageLinkString(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




Re: Generic BookmarkablePage

2009-05-24 Thread Igor Vaynberg
final Link? link = new BookmarkablePageLinkVoid(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.comwrote:

 final Link? link=

 -igor


 @James
 The seems to work just fine:

 final LinkVoid link = new BookmarkablePageLinkVoid(a-contact, ...);


 @Igor
 Just wanted to clarify ... it is hard to tell exactly what you're
 suggesting:

 final Link? link = new BookmarkablePageLinkVoid(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:
  BookmarkablePageLinkVoid 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 LinkString link = new
  BookmarkablePageLinkString(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



Generic BookmarkablePage

2009-05-23 Thread Luther Baker
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 LinkString link = new
BookmarkablePageLinkString(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


Re: Generic BookmarkablePage

2009-05-23 Thread James Carman
BookmarkablePageLinkVoid 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 LinkString link = new
 BookmarkablePageLinkString(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



Re: Generic BookmarkablePage

2009-05-23 Thread Igor Vaynberg
final Link? link=

-igor

On Sat, May 23, 2009 at 12:55 PM, James Carman
jcar...@carmanconsulting.com wrote:
 BookmarkablePageLinkVoid 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 LinkString link = new
 BookmarkablePageLinkString(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