RE: Making ExternalLink invisible: test for what?

2007-10-12 Thread Chris Colman
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(

Re: Making ExternalLink invisible: test for what?

2007-10-02 Thread Martijn Dashorst
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

Re: Making ExternalLink invisible: test for what?

2007-10-02 Thread Igor Vaynberg
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?

RE: Making ExternalLink invisible: test for what?

2007-10-02 Thread Chris Colman
> 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

Re: Making ExternalLink invisible: test for what?

2007-10-02 Thread Igor Vaynberg
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

Making ExternalLink invisible: test for what?

2007-10-02 Thread Chris Colman
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