Label archivesLabel = new Label("archives", "<b>In the future please  
search the mailing list archives first.</b>").setEscapeModelStrings 
(false);


On Mar 27, 2007, at 11:31 AM, Ralf Eichinger wrote:

> I'm developing a cms.
> I want to output a html-string inside a wicket-page.
> when I do like this:
>
> Label lblArticleContent = new Label("lblArticleContent",
> article.getHtmlContent());
> add(lblArticleContent);
>
> I get my html encoded like this:
> &lt;h1&gt;Willkommen auf der Startseite!&lt;/h1&gt;&lt;p&gt;Hier  
> kommt Ihr
> Text...&lt;/p&gt;
>
> Do I have to set something to not encode my html output?
> Do I have to use another component than Label?
>
> greetings
> ralf
>
> ---------------------------------------------------------------------- 
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to  
> share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php? 
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to