* Petr Sakar: > Use case is > > - to be able to generate lot of different forms (basically no > grafic) with fields which can be added removed dynamically > > - maintain uniform look and feel (eg. not to define the html for > MyTextField on every form again and again > > - just define MyTextField.html once and on form use > add(new MyTextField("field1")) without need to add <span > wicket:id="field1"/> somewhere in form markup.
I also have this use case to generate the UI based on a Java model, without writing the whole template. The idea is to produce the right template dynamically from the model, and using a Panel for every widget. I do this with VelocityPanel from wicket-contrib, with a hack to allow for child components. The general idea is: #foreach($property in $model) <span wicket:id="$property"/> #end Every referenced wicket component is a Panel. Cheers, -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ ------------------------------------------------------------------------- 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-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop