Also, you should do this instead:
add(new Label("somelable", new StringResourceModel("your-string-key")))
On Sun, Oct 3, 2010 at 9:48 PM, Mauro Ciancio <[email protected]>wrote:
> Hello,
> This could help you,
> org.apache.wicket.Component#setEscapeModelStrings
>
> That would disable the escape of strings.
>
> Regards.
>
> On Sun, Oct 3, 2010 at 11:21 PM, <[email protected]> wrote:
> > Hi All,
> >
> >
> > I have some property define in property file like below
> >
> > Myproperty.name = This is <b>bold</b>
> >
> > And on some Ajax request I am adding this property to some label like
> this
> >
> > add(new Label("somelable", getLocalizer().getString("Myproperty.name."))
> >
> >
> > My problem is , html tags are rendered as text and I am not getting
> bold effect or any Html formatting.
> >
> >
> > Hope someone know how to fix this.
> >
> > Thanks
> >
> >
> >
> >
>
>
>
> --
> Mauro Ciancio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
Jeremy Thomerson
http://www.wickettraining.com