Eelco Hillenius schrieb:
While it wouldn't be considered best practice, you could. There are
several tags, like dropdownchoice, that write out pieces of HTML
without creating sub elements first.

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.

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


There is a BeanEditor in wicket extensions that uses Panels to create the input elements for the bean properties dynamically. At least with 1.1.1, you can find an example in the example project under examples/compref/BeanEditPage.java


Timo


On 5/3/06, Ashley Aitken <[EMAIL PROTECTED]> wrote:


Howdy All,

I am new to Wicket, just looking around for an appropriate Web framework to
use on my next project.

I would like to know if Wicket can (or will shortly be able to) generate
HTML elements (as well as doing all the other things it can do). By this I mean something like the old Element Construction Set (ECS) or perhaps even
Swinglets.

I've seen some discussion of this on the mailing list archive (although it
is hard to follow threads via the archive), but it was mainly relating to
Wicket possibly auto-generating prototype HTML if a HTML file was not
available.

I also understand that Wicket usually works with a HTML file and some may
suggest using a Wicket panel for each possible element I wish to construct.
That may be a possible but it doesn't seem elegant.

However, I can't see why Wicket couldn't generate HTML when required, for
very dynamic parts of a Web page.  Wicket seems to have classes
corresponding to most (if not all) HTML elements already.

Of course, most dynamic Web pages won't need this, they just want to slot
some dynamic content in an already setup HTML template, but I can also see
where full dynamic control of the tags and content could be useful.

Sorry if I have misunderstood how Wicket works.  Any comments, or
suggestions, would be most appreciated.



Cheers,


Ashley.




--

Ashley Aitken

Perth, Western Australia

mrhatken at mac dot com

Skype Name: MrHatken (GMT + 8 Hours!)







-------------------------------------------------------
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=k&kid0709&bid&3057&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to