Ashley Aitken schrieb:

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?

Exactly.


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:

http://www.wicket-wiki.org.uk/wiki/index.php/Create_dynamic_markup_hierarchies_using_panels

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 ;-)

Yes :)

Panels are useful to encapsulate common GUI elements with several lines of markup, but not for single tags.


Timo


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to