Class ChainingModel<T>

java.lang.Object
org.apache.wicket.model.ChainingModel<T>
Type Parameters:
T - The Model object type
All Implemented Interfaces:
Serializable, IDetachable, IModel<T>, IClusterable
Direct Known Subclasses:
AbstractPropertyModel, CompoundPropertyModel

public class ChainingModel<T> extends Object implements IModel<T>
This model and its subclasses support chaining of IModels. getObject() of ChainingModel returns its object like this:
 if ( object instanceof IModel) { return ((IModel)object).getObject()}
 else return object;
 
ChainingModel also detaches the inner model on detach.
Since:
6.0.0
See Also: