Class ListViewFormComponentReuseManager

    • Method Detail

      • addOrReuse

        public static <T extends FormComponent<?>> T addOrReuse​(MarkupContainer parent,
                                                                T newComponent)
        Either adds the given newComponent to the parent or reuses an existing component instance previously used with the same model object.
        Type Parameters:
        T -
        Parameters:
        parent -
        newComponent -
        Returns:
        newComponent or a component previously bound to the same model object