You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Gu...@wellsfargo.com on 2010/10/04 04:21:16 UTC
Rendering Html on Ajax Request
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
Re: Rendering Html on Ajax Request
Posted by Jeremy Thomerson <je...@wickettraining.com>.
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 <ma...@gmail.com>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, <Gu...@wellsfargo.com> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Jeremy Thomerson
http://www.wickettraining.com
RE: Rendering Html on Ajax Request
Posted by Gu...@wellsfargo.com.
Thanks Mauro. That worked woo hoooooooooo!
-----Original Message-----
From: Mauro Ciancio [mailto: ]
Sent: Sunday, October 03, 2010 7:48 PM
To: users@wicket.apache.org
Subject: Re: Rendering Html on Ajax Request
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, <Gu...@wellsfargo.com> 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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Rendering Html on Ajax Request
Posted by Mauro Ciancio <ma...@gmail.com>.
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, <Gu...@wellsfargo.com> 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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org