You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by btakacs <ta...@gmail.com> on 2008/08/26 11:29:46 UTC

Displaying HTML formatted text (raw markup) from String

Hi

I would need to display HTML formatted text inside my page. The text is
stored in the database, so i would need to display it through component. Is
there a way to do this? I did not find any specific component for that.

Maybe I could Override the renderAll(MarkupStream markupStream) method of
MarkupContainer?

Thanks:
   Bence


-- 
View this message in context: http://www.nabble.com/Displaying-HTML-formatted-text-%28raw-markup%29-from-String-tp19158563p19158563.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Displaying HTML formatted text (raw markup) from String

Posted by francisco treacy <fr...@gmail.com>.
setEscapeModelStrings on your Label

francisco

On Tue, Aug 26, 2008 at 11:29 AM, btakacs <ta...@gmail.com> wrote:
>
> Hi
>
> I would need to display HTML formatted text inside my page. The text is
> stored in the database, so i would need to display it through component. Is
> there a way to do this? I did not find any specific component for that.
>
> Maybe I could Override the renderAll(MarkupStream markupStream) method of
> MarkupContainer?
>
> Thanks:
>   Bence
>
>
> --
> View this message in context: http://www.nabble.com/Displaying-HTML-formatted-text-%28raw-markup%29-from-String-tp19158563p19158563.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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: Displaying HTML formatted text (raw markup) from String

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
yeah you can also see the ancient bbcode component I wrote once for 
reference, 
http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-bbcodecomponent

btakacs wrote:
> Hi
>
> I would need to display HTML formatted text inside my page. The text is
> stored in the database, so i would need to display it through component. Is
> there a way to do this? I did not find any specific component for that.
>
> Maybe I could Override the renderAll(MarkupStream markupStream) method of
> MarkupContainer?
>
> Thanks:
>    Bence
>
>
>   

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Displaying HTML formatted text (raw markup) from String

Posted by btakacs <ta...@gmail.com>.
Thanks, it works.



Michael Sparer wrote:
> 
> use a label or a multilinelabel for that and setEscapeModelStrings to
> false
> 
> hope that helps
> regards,
> Michael
> 
> 
> btakacs wrote:
>> 
>> Hi
>> 
>> I would need to display HTML formatted text inside my page. The text is
>> stored in the database, so i would need to display it through component.
>> Is there a way to do this? I did not find any specific component for
>> that.
>> 
>> Maybe I could Override the renderAll(MarkupStream markupStream) method of
>> MarkupContainer?
>> 
>> Thanks:
>>    Bence
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Displaying-HTML-formatted-text-%28raw-markup%29-from-String-tp19158563p19158802.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Displaying HTML formatted text (raw markup) from String

Posted by Michael Sparer <mi...@gmx.at>.
use a label or a multilinelabel for that and setEscapeModelStrings to false

hope that helps
regards,
Michael


btakacs wrote:
> 
> Hi
> 
> I would need to display HTML formatted text inside my page. The text is
> stored in the database, so i would need to display it through component.
> Is there a way to do this? I did not find any specific component for that.
> 
> Maybe I could Override the renderAll(MarkupStream markupStream) method of
> MarkupContainer?
> 
> Thanks:
>    Bence
> 
> 
> 


-----
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: http://www.nabble.com/Displaying-HTML-formatted-text-%28raw-markup%29-from-String-tp19158563p19158567.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org