age-
> From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 3 October 2007 4:36 PM
> To: users@wicket.apache.org
> Subject: Re: Making ExternalLink invisible: test for what?
>
> why not use the setVisible method?
>
> link.setVisible(StringUtils.isNotBlank(
why not use the setVisible method?
link.setVisible(StringUtils.isNotBlank(url) && StringUtils.isNotBlank(...));
Martijn
On 10/3/07, Chris Colman <[EMAIL PROTECTED]> wrote:
> I have content that I render that may or may not have a URL associated
> with it. I don't want to display anything if the
please look at the code, they are called gethref() and getlabel() and return
exactly what you put into the constructor
-igor
On 10/2/07, Chris Colman <[EMAIL PROTECTED]> wrote:
>
> > i added the missing getters, update from trunk and you should be good.
>
> Thanks Igor, but what are they called?
> i added the missing getters, update from trunk and you should be good.
Thanks Igor, but what are they called? getUrl(), getDisplay()?
Actually the display text is more valuable because it doesn't have the
http:// prefix so I can do a simple null or blank text whereas the URL
will always have a
i added the missing getters, update from trunk and you should be good.
-igor
On 10/2/07, Chris Colman <[EMAIL PROTECTED]> wrote:
>
> I have content that I render that may or may not have a URL associated
> with it. I don't want to display anything if the URL is blank.
>
> I use ExternalLink for
I have content that I render that may or may not have a URL associated
with it. I don't want to display anything if the URL is blank.
I use ExternalLink for the URLs. As I place a reference to the link in
my markup I need to instantiate an ExternalLink object in the
corresponding page/panel classe