getComponent
public org.apache.wicket.Component getComponent(String componentId,
MetaItem metaItem,
org.apache.wicket.model.IModel sizeModel,
Object modelObject,
User user)
Some fields/attribute may require display of options
for selection or Auto-Suggest etc..
Providing rendering option for lookup for that field/attribute.
The base class returns a Hidden field, which can be overriden by any derived adapter.
If no mapping exists, then null will be returned.
Base class implementation returns HiddenField
Some fields/attribute may require display of options
for selection or Auto-Suggest etc..
Providing rendering option for lookup for that field/attribute.
The base class returns a Hidden field, which can be overriden by any derived adapter.
If no mapping exists, then null will be returned.
Base class implementation returns HiddenField
- Overrides:
getComponent
in class CustomItemComponentRenderAdapter
- Parameters:
componentId
- as Sting id for the Component
metaItem
- as MetaItem meta data for rendering logic
sizeModel
- is the current data defined in a IModel
for the MetaItem.
The resultant model in the returned Component may NOT be same as the one passed to the inner component, hence always use the derived one.
This is because there maybe a mismatch in the form of core/raw data and one required for final presentation.
For example the input maybe a Comma Separated list of Strings, however for presentation in a List box we may convert the Model to a ListModel.
modelObject
- as Object, that represents the main Entity (overall context)
user
- as com.neurosys.security.auth.domain.User for any Authorization related needs @nullable true
- Returns:
- Component @nullable true