package org.apache.wicket.model;
A simple compound model which uses the component's name as the property expression to retrieve
properties on the nested model object.
CompoundPropertyModel is a chaining model so it will call get/setobject on the given object if
the object is an instanceof IModel itself.
Constructor
- Parameters:
object
The model object, which may or may not implement IModel
Returns the property expression that should be used against the target object
- Parameters:
component- Returns:
- property expression that should be used against the target object
return component.getId();
Binds this model to a special property by returning a model that has this compound model as
its nested/wrapped model and the property which should be evaluated. This can be used if the
id of the Component isn't a valid property for the data object.
- Parameters:
property- Returns:
- The IModel that is a wrapper around the current model and the property
Constructor
- Parameters:
owner
component that this model has been attached to