On 3/28/06, Matthias Albert <[EMAIL PROTECTED]> wrote:
> My problem is to show the body content of a static HTML file inside a
> table cell of a Wicket page. Which file is selected dynamically.
>
>
> I now managed to read the whole HTML file and assign its content to a
> label. The problem is that every single character is shown, with many
> charcters escaped like &lt;table&gt; for <table>.
>

> The HTML file needs to be parsed and only the elements inside the <body>
> element returned without being escaped.
>

Try label.setEscapeModelStrings(true)

> Does anyone have an idea how to achieve this? I could do a XSLT
> preprocessing if nesessary.
>

You've read the html file already, right. Make it simple and search
for <body> and </body> and remove everything before and after this tag
(including the body tag I guess)

Juergen


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to