I had a similar problem and have done the actualization of the selectable values using a RefreshableValueHolder:
Code:
private class YourValueHolder extends RefreshableValueHolder{
public YourValueHolder() {
super(new Closure() {
public Object call(Object arg0) {
return "retieve your data from the selected object";
}
}, false, false); //alwaysRefresh ainda não funciona - springrcp1.0.0);
}
}
private YourValueHolder yourValueHolder = new YourValueHolder();
Then I overrided the method below in the AbstractDetailForm returned by createDetailForm(...):
Code:
@Override
protected void setEditState(int editState) {
if(editState != 0) {
yourValueHolder.refresh();
}
super.setEditState(editState);
}
Or you can just add a property change listener and call yourValueHolder.refresh();
Your combobox can be binded as:
Code:
bindingFactory.createBoundComboBox("formProperty", yourValueHolder);