how to display custom user picker value
Dears,
I wrote a customized User Picker according to the Demo, it is working fine under the Creat and Edit modes, but it can't show the selected property value, I think I should need to write some code under the getDataValue method for the ComponentMode.VIEW, how can I make writing this part of the code to be able to display it on the VIEW under getDataValue method. Thank you.
@Override
public Object getDataValue(String component_id, Object object, ModelContext mc) throws WTException {
String attributeId = component_id;
Object obj = null;
GUIComponentArray guiArray = new GUIComponentArray();
if (ComponentMode.CREATE.equals(mode) || ComponentMode.EDIT.equals(mode)) {
obj = super.getDataValue(attributeId, object, mc);
if (obj instanceof PickerInputComponent) {
PickerInputComponent pickerComponent = (PickerInputComponent) obj;
guiArray.addGUIComponent(pickerComponent);
}
} else if (ComponentMode.VIEW.equals(mode)) {
//TODO
}
return obj;
}

