Hi igor,

well i know that its trivial, but as 99% of all links will be <a href=""
wicket:id="foo">text</a> it would make sense in my point of view to include
this directly, as it would shorten code much, and it would make wicket a bit
nicer IMHO.

Regards

Korbinian 

> -----Ursprüngliche Nachricht-----
> Von: Igor Vaynberg [mailto:[EMAIL PROTECTED] 
> Gesendet: Montag, 23. Oktober 2006 19:53
> An: [email protected]
> Betreff: Re: Feature Idea / Request
> 
> it is trivial to create a panel that encapsulates a link and 
> a label to achieve the desired effect. maybe take you 5 minutes.
> 
> -Igor
> 
> 
> On 10/22/06, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > i've come over a point where i think it might be useful to make a 
> > thing easier. Im talking about BookmarkablePageLink.
> >
> > Usually a link consists of following in html: <a 
> > href="URL">DESCRIPTION</a>
> >
> > while in Wicket a BookmarkablePageLink only (!) alters the 
> URL, e.g: a 
> > BPL has to be:
> > <a href="#" wicket:id="myLinkId"><span 
> > wicket:id="myLinkLabel">foo</span></a>
> >
> > couldnt this be simplfied to just:
> > <a href="#" wicket:id="myLinkId">foo</a>
> >
> > and the constructor could then be:
> > public BookmarkablePageLink(final String id, final Class pageClass, 
> > final PageParameters parameters, final String linkDescription)
> >
> >
> > wouldnt this be a bit nicer?
> >
> > ive come over this as i create a list with links, but without a 
> > description it makes no sense, e.g:
> >
> > List navList = new ArrayList();
> > navList.add(new BookmarkablePageLink("linkTo",A.class).add(new
> > Label("linkName","FOOA")));
> > navList.add(new BookmarkablePageLink("linkTo",B.class).add(new
> > Label("linkName","FOO HSH")));
> > navList.add(new BookmarkablePageLink("linkTo",C.class).add(new
> > Label("linkName","FOO BAR BAR")));
> >
> > just my 2 cents,
> >
> > Best Regards,
> >
> > Korbinian
> >
> > PS: if im wrong anywhere please let me know!
> >
> >
> 

Reply via email to