Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: typos

...

However, if the name component does not have a label set then , it will be set to Name based on the markup.

...

If the label is not visible then neither is the contents of the enclosure. Without the enclosure you would have to add an extra WebMarkupContainer to your code and attach it to the tr tag then link its visibility to that of the label, with wicket:enclosure it is much simpler.

If there are more then than one wicket components directly underneath the enclosure, you have to specify which one controls the visibility by providing its id in the enclosure's child attribute:

...