On 03/05/2006, at 5:42 PM, Timo Stamm wrote: Instead of handling Strings yourself, it is perfectly possible to use ECS or any other lib (like the ones that come with Jetty) for this task.
Yes, that was my hope (or that Wicket classes could optionally generate the full HTML). But I am unsure how to inject the HTML into a Wicket page at a particular location.
Would I just have something like a a SPAN or DIV tag with a wicket:id and then dynamically put the string generated from ECS or similar in there at run-time using a Label? But I doubt that this integrates well with the rest of the wicket world. Using Panels to generate markup dynamically is quite powerful. I think that Wicket could handle this a bit more elegant, but it really works well enough for most cases.
See this article for a very short introduction to using Panels for dynamic markup:
Yes thanks, I have seen that but it doesn't seem like it would scale to generate arbitrary HTML - having a component for every different HTML tag (pair) seems like overkill ;-)
Cheers,
Ashley.
-- Ashley Aitken Perth, Western Australia mrhatken at mac dot com Skype Name: MrHatken (GMT + 8 Hours!)
|
- Re: [Wicket-user] Generating HTML with Wicket? Ashley Aitken
-