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]

Reply via email to