Class InlineEnclosure

All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IMetadataContext<Serializable,Component>, IHeaderContributor, IComponentResolver, IRequestableComponent, IHierarchical<Component>, IClusterable

public class InlineEnclosure extends Enclosure
An InlineEnclosure are automatically created by Wicket. Do not create it yourself. An InlineEnclosure container is created when <tr wicket:enclosure="controllingChildId"> (any html tag which can contain other html tags can be used in place of <tr>) is found in the markup. The child component (it's id defined as the value of the attribute, in the example, 'controllingChildId') controls the visibility of the whole enclosure and it's children. This also works in Ajax calls without extra markup or java code.
Joonas Hamalainen, Juergen Donnerstag
See Also:
  • Constructor Details

    • InlineEnclosure

      public InlineEnclosure(String id, String childId)
      id - The component id
      childId - The id of the child component that controls the visibility
  • Method Details

    • onComponentTag

      protected void onComponentTag(ComponentTag tag)
      Description copied from class: Component
      Processes the component tag. Overrides of this method most likely should call the super implementation.
      onComponentTag in class Component
      tag - Tag to modify