use of org.devgateway.toolkit.forms.models.ViewModeConverterModel in project ocvn by devgateway.
the class GenericBootstrapFormComponent method onInitialize.
/*
* (non-Javadoc)
*
* @see org.apache.wicket.Component#onConfigure()
*/
@Override
protected void onInitialize() {
super.onInitialize();
if ((field instanceof RadioGroup) || (field instanceof CheckGroup)) {
getAjaxFormChoiceComponentUpdatingBehavior();
} else {
getAjaxFormComponentUpdatingBehavior();
}
viewModeField = new Label("viewModeField", new ViewModeConverterModel<TYPE>(getModel()));
viewModeField.setEscapeModelStrings(false);
viewModeField.setVisibilityAllowed(ComponentUtil.isViewMode());
border.add(viewModeField);
tooltipLabel.setConfigWithTrigger(configWithTrigger);
}
Aggregations