You can use a label:

add(new Label("xyz", "valueOfXYZ").setEscapeModelStrings(false));

**
Martin

2009/3/18 Ista Pouss <ista...@gmail.com>:
> Hi,
>
> How can I insert in the result HTML page some markup from Java code ?
>
> I have, in HTML :
>
> <p wiket:id="xyz">?</p>
>
> In Java :
>
> String valueOfXYZ = "<b>What a good <i>book</i></b>";
> add("xyz", <something here>);
>
>
> And I should want :
>
> <p wiket:id="xyz"><b>What a good <i>book</i></b></p>
>
>
> Thank for your help.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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

Reply via email to