Try changing

add(new Label("output","<h1>Hello</h1>")).setEscapeModelStrings(false);

to

Label label = new Label("output","<h1>Hello</h1>");
label.setEscapeModelStrings(false);
add(label);

Jason

NiJK wrote:

igor.vaynberg wrote:
Also, despite the setEscapeModelString(false), all the HTML is escaped.
that is pretty weird. i just tried and it worked fine for me...
-igor


Igor,

Thanks for the info about setStripWicketTags(true).

Something as simple as add(new Label("output","<h1>Hello</h1>")).setEscapeModelStrings(false);
is rendering as
&lt;h1&gt;Hello&lt;/h1&gt;

I take it you're not seeing the same?


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

Reply via email to