org.wicketstuff.minis.util
Class ListViewFormComponentReuseManager

java.lang.Object
  extended by org.wicketstuff.minis.util.ListViewFormComponentReuseManager
All Implemented Interfaces:
java.io.Serializable

public final class ListViewFormComponentReuseManager
extends java.lang.Object
implements java.io.Serializable

This class solves: Using up/down/remove links of ListView items clears text fields

Author:
Sebastian Thomschke
See Also:
Serialized Form

Method Summary
static
<T extends org.apache.wicket.markup.html.form.FormComponent<?>>
T
addOrReuse(org.apache.wicket.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addOrReuse

public static <T extends org.apache.wicket.markup.html.form.FormComponent<?>> T addOrReuse(org.apache.wicket.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


Copyright © 2011. All Rights Reserved.