How to write HTML directly

2009-10-26 Thread nick kitching
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

Re: How to write HTML directly

2009-10-26 Thread Mauro Ciancio
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

Re: How to write HTML directly

2009-10-26 Thread Igor Vaynberg
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

Re: How to write HTML directly

2009-10-26 Thread NiJK
://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

Re: How to write HTML directly

2009-10-26 Thread Mauro Ciancio
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

Re: How to write HTML directly

2009-10-26 Thread NiJK
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

Re: How to write HTML directly

2009-10-26 Thread Igor Vaynberg
. 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

Re: How to write HTML directly

2009-10-26 Thread NiJK
)).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

Re: How to write HTML directly

2009-10-26 Thread Igor Vaynberg
-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

Re: How to write HTML directly

2009-10-26 Thread Jason Novotny
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.

Re: How to write HTML directly

2009-10-26 Thread James Carman
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

Re: How to write HTML directly

2009-10-26 Thread NiJK
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