A link-o-label needed

2008-03-14 Thread Vitaly Tsaplin
Hi experts, Does anyone know how to create a label link in wicket? In other words I need a clickable label or a link which acts as a label taking its text from a model exactly like a wicket's label. Vitaly - To

Re: A link-o-label needed

2008-03-14 Thread Vitaly Tsaplin
Thanks James, I wrote a subclass of a wicket link to archive this, but simple adding a label as a child to a link seams to be a really good idea :) Vitaly On Fri, Mar 14, 2008 at 3:17 PM, James Carman [EMAIL PROTECTED] wrote: Have you tried adding a label to your link? I do this with

Re: A link-o-label needed

2008-03-14 Thread James Carman
Yeah, the output would be something like: a href=... wicket:id=myLinkspan wicket:id=myLinkLabel //a off the top of my head. You might want to tell the label to just render its body, also. On 3/14/08, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Thanks James, I wrote a subclass of a wicket

Re: A link-o-label needed

2008-03-14 Thread James Carman
Have you tried adding a label to your link? I do this with images. I don't see why you wouldn't be able to do it with labels. On 3/14/08, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi experts, Does anyone know how to create a label link in wicket? In other words I need a clickable label

Re: A link-o-label needed

2008-03-14 Thread James Carman
On 3/14/08, Thomas Kappler [EMAIL PROTECTED] wrote: On Fri, Mar 14, 2008 at 3:26 PM, James Carman [EMAIL PROTECTED] wrote: Yeah, the output would be something like: a href=... wicket:id=myLinkspan wicket:id=myLinkLabel //a off the top of my head. You might want to tell the

Re: A link-o-label needed

2008-03-14 Thread Thomas Kappler
On Fri, Mar 14, 2008 at 3:26 PM, James Carman [EMAIL PROTECTED] wrote: Yeah, the output would be something like: a href=... wicket:id=myLinkspan wicket:id=myLinkLabel //a off the top of my head. You might want to tell the label to just render its body, also. What do you mean with the

Re: A link-o-label needed

2008-03-14 Thread Igor Vaynberg
class textlink extends link { //constructor from link that takes a model protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { replaceComponentTagBody(markupStream, openTag, getModelObjectAsString()); } } obviously

Re: A link-o-label needed

2008-03-14 Thread Jonathan Locke
] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/A-link-o-label-needed-tp16052333p16062870.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: A link-o-label needed

2008-03-14 Thread James Carman
On 3/14/08, Jonathan Locke [EMAIL PROTECTED] wrote: you could do it that way. another way to do it would be to create a link panel. you could then subclass and decorate the panel in various ways. i do it this way so i can leverage my application with panel factories. this can be quite

Re: A link-o-label needed

2008-03-14 Thread Jonathan Locke
, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/A-link-o-label-needed-tp16052333p16063017.html Sent from the Wicket - User mailing list archive at Nabble.com

RE: A link-o-label needed

2008-03-14 Thread Dan Kaplan
: Jonathan Locke [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2008 5:26 PM To: users@wicket.apache.org Subject: Re: A link-o-label needed you could do it that way. another way to do it would be to create a link panel. you could then subclass and decorate the panel in various ways. i do