You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Michael Mehrle <mi...@ask.com> on 2008/06/01 03:45:28 UTC
Changing Link string conditionally?
Okay, this seems so easy, but I'm somehow stuck. How do I change the
string of a Link based on some condition? Do I simply provide a
terminated tag and set the model (i.e. the visible string) in my code?
Michael
RE: Changing Link string conditionally?
Posted by Michael Mehrle <mi...@ask.com>.
Okay, so I need to treat the link text as a separate entity - makes
sense. Thanks a lot - can't believe I didn't think of that...
Michael
-----Original Message-----
From: Erik van Oosten [mailto:e.vanoosten@grons.nl]
Sent: Sunday, June 01, 2008 2:00 AM
To: users@wicket.apache.org
Subject: Re: Changing Link string conditionally?
The idea is to put a span inside the a, and then attach a Label to the
span.
Is that something you can work with?
Regards,
Erik.
Michael Mehrle wrote:
> Okay, this seems so easy, but I'm somehow stuck. How do I change the
> string of a Link based on some condition? Do I simply provide a
> terminated tag and set the model (i.e. the visible string) in my code?
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Changing Link string conditionally?
Posted by Erik van Oosten <e....@grons.nl>.
Michael Allan wrote:
> Fearing a span-demic in my code, I came up with this:...
> There's probably a more elegant way to code it, though.
>
Neh, that is a very common approach ;)
Erik.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Changing Link string conditionally?
Posted by Michael Allan <mi...@zelea.com>.
Erik van Oosten wrote:
> The idea is to put a span inside the a, and then attach a Label to the
> span.
Fearing a span-demic in my code, I came up with this:
http://zelea.com/project/votorola/g/servlet/BookmarkablePageLinkX.java
http://zelea.com/project/votorola/_/javadoc/votorola/g/servlet/BookmarkablePageLinkX.html
There's probably a more elegant way to code it, though.
--
Michael Allan
Toronto, 647-436-4521
http://zelea.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Changing Link string conditionally?
Posted by Erik van Oosten <e....@grons.nl>.
The idea is to put a span inside the a, and then attach a Label to the span.
Is that something you can work with?
Regards,
Erik.
Michael Mehrle wrote:
> Okay, this seems so easy, but I'm somehow stuck. How do I change the
> string of a Link based on some condition? Do I simply provide a
> terminated tag and set the model (i.e. the visible string) in my code?
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org