Looking at the package name I think you are using Wicket 1.2.
Consider upgrade to 1.3.6 or even 1.4-rc4.
About the question: yes, it is possible. Wrap the words with span
style=color: #xxword/span and call
multiLineLabel.setEscapeModelStrings(false)
El mar, 12-05-2009 a las 13:00 +0200,
Hi,
I have a request to put a link into a MultiLineLabel, or to set
some Words within the MultiLineLabel with a different color.
Is this possible in general?
thx
- jk
-
To unsubscribe, e-mail:
add whatever markup you want to the label's model and call
setescapemodelstrings(false)
-igor
On Tue, May 12, 2009 at 4:00 AM, wolfgang.sch...@dachser.com wrote:
Hi,
I have a request to put a link into a MultiLineLabel, or to set
some Words within the MultiLineLabel with a different color.
I've done similar things by creating a model that wraps another model.
The outer model modifies the content of the inner model's string by
adding markup, converting links, etc... This is really very effective
because you can actually separate the logic into multiple models if
you would like