Hi,
I have a Java class which outputs HTML directly including HTML,HEAD and
BODY tags.
Using JSP I simply include this class as a bean and then have the JSP do
something like
${bean.itsMethod}
to have those tags written directly into my page.
I'm just starting out with Wicket and wondered
Nick:
On Mon, Oct 26, 2009 at 2:27 PM, nick kitching n_kitch...@hotmail.comwrote:
I have a Java class which outputs HTML directly including HTML,HEAD and
BODY tags.
Using JSP I simply include this class as a bean and then have the JSP do
something like
${bean.itsMethod}
to have those tags
add(new label(output, new propertymodel(this,
itsMethod)).setescapemodelstrings(false));
and im markup
wicket:container wicket:id=output/wicket:container
-igor
On Mon, Oct 26, 2009 at 10:27 AM, nick kitching n_kitch...@hotmail.com wrote:
Hi,
I have a Java class which outputs HTML directly
://www.nabble.com/How-to-write-HTML-directly-tp26063933p26064181.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h
Nick:
On Mon, Oct 26, 2009 at 2:43 PM, NiJK n_kitch...@hotmail.com wrote:
Thanks for your reply. I understand that Wicket doesn't work the same way
and was wondering how this could be achieved. Is there just no way to
output
HTML directly? How would you use wicket to send an XML file, for
the setEscapeModelString(false), all the HTML is escaped.
--
View this message in context:
http://www.nabble.com/How-to-write-HTML-directly-tp26063933p26064720.html
Sent from the Wicket - User mailing list archive at Nabble.com
.
that is pretty weird. i just tried and it worked fine for me...
-igor
--
View this message in context:
http://www.nabble.com/How-to-write-HTML-directly-tp26063933p26064720.html
Sent from the Wicket - User mailing list archive at Nabble.com
)).setEscapeModelStrings(false);
is rendering as
lt;h1gt;Hellolt;/h1gt;
I take it you're not seeing the same?
--
View this message in context:
http://www.nabble.com/How-to-write-HTML-directly-tp26063933p26067076.html
Sent from the Wicket - User mailing list archive at Nabble.com
-to-write-HTML-directly-tp26063933p26067076.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h
Try changing
add(new Label(output,h1Hello/h1)).setEscapeModelStrings(false);
to
Label label = new Label(output,h1Hello/h1);
label.setEscapeModelStrings(false);
add(label);
Jason
NiJK wrote:
igor.vaynberg wrote:
Also, despite the setEscapeModelString(false), all the HTML is escaped.
Yes add(new Label(output,h1Hello/h1)) returns this which is
the current component/page. Then, you're calling
setEscapeModelStrings(false) on that, which is not what you want. You
want:
add(new Label(output,h1Hello/h1).setEscapeModelStrings(false));
Igor's example had the double end parens
James Carman-3 wrote:
add(new Label(output,h1Hello/h1).setEscapeModelStrings(false));
Thanks for all your help on this, guys.
And apologies to Igor for not paying attention to that syntax.
--
View this message in context:
http://www.nabble.com/How-to-write-HTML-directly
12 matches
Mail list logo