Re: Changing Link string conditionally?

2008-06-01 Thread Erik van Oosten

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Changing Link string conditionally?

2008-06-01 Thread Michael Mehrle
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:[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Changing Link string conditionally?

2008-06-01 Thread Michael Allan
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Changing Link string conditionally?

2008-06-01 Thread Erik van Oosten

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]