I have template group box, for reuse purposes.
In this template I have function witch need to fill data inside this template.
Because you can't create new instance of FormData
in template I have abstract function for getting new instance of form data. Then each form that use this template implement this method.
protected abstract AbstractMyBoxData getFormData();
My function is look like this :
public void setValuesInTemplates(Long parameter)
{
AbstractMyBoxData formData = this.getFormData();
this.exportFormFieldData(formData);
formData = BEANS.get(iMyService.class).setSomeValue(parameter);
this.importFormFieldData(formData, true);
}
My problem is that I get correct form data from service, but when I import this form data, template does not change UI.
Why is this?