Some corrections :) I don't need to generate wicket markup. The example is the desirable wicket markup that will support the dynamical generation. Each node component is thought as a Loop.
The think is the markup is required to be like this. The only thing I'd like to reduce is the written java code. In short I'd like to create a reusable node component that I can configure (with populateCaption() and populateChildren() callback methods perhaps) just like the Loop :) The node structure is fixed: <div> <div> -- caption components -- </div> <div style="margin-left: 24px;"> -- children components -- </div> </div> I hope I was clearer this time :D Stefan On Wed, 2008-06-04 at 15:04 +0300, Stefan Selariu wrote: > Hi guys! > > I need to make generate something like this dynamically: > > <div wicket:id="level1"> <!-- node component --> > <div> <!-- caption --> > <span wicket:id="text" /> > </div> > <div style="margin-left: 24px;"> <!-- children --> > <div wicket:id="level2-1"> <!-- node component --> > <div> <!-- caption --> > <a href="#" wicket:id="link">select</a> > </div> > <div style="margin-left: 24px;"> <!-- children --> > <div wicket:id="level3"> <!-- node component --> > <div> <!-- caption --> > <span wicket:id="name" /> > </div> > <div style="margin-left: 24px;"> <!-- children --> > </div> > </div> > </div> > </div> > <div wicket:id="level2-2"> <!-- node component --> > <div> <!-- caption --> > <span wicket:id="text" /> > </div> > <div style="margin-left: 24px;"> <!-- children --> > </div> > </div> > </div> > </div> > > This is a tree for which every node has a caption and children. > Can I create a wicket component for the tree node that supports my > example? > > I need a component that behaves like the Loop but in a recursive way :) > > Best regards, > Stefan > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]