public class TextAreaAdapter extends CustomItemComponentRenderAdapter
CustomItemComponentRenderAdapter.ContextualTwoWayTransformerauthorizationModule, modelTransformer| Constructor and Description |
|---|
TextAreaAdapter() |
TextAreaAdapter(TextAreaAdapter t) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.wicket.Component |
getComponent(String componentId,
MetaItem metaItem,
org.apache.wicket.model.IModel currentDefaultSelectionIds,
Object modelObject,
User user)
Some fields/attribute may require display of options
for selection or Auto-Suggest etc..
|
filter, getDataList, getLookup, getModelTransformer, markComponentReadOnly, processSubmit, setModelTransformer, translateCurrentSelectionModelpublic TextAreaAdapter()
public TextAreaAdapter(TextAreaAdapter t)
public org.apache.wicket.Component getComponent(String componentId, MetaItem metaItem, org.apache.wicket.model.IModel currentDefaultSelectionIds, Object modelObject, User user)
HiddenField
Show a Text Area of options selectedgetComponent in class CustomItemComponentRenderAdaptercomponentId - as Sting id for the ComponentmetaItem - as MetaItem meta data for rendering logiccurrentDefaultSelectionIds - 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 trueCopyright © 2018. All rights reserved.