Vincent,
To add the ability to change the descriptor with the type of the model, or other data, may I request some change in org.jspresso.framework.application.frontend.action.std.AbstractEditComponentAction:
- in method "execute", replace
IValueConnector componentConnector = getBackendController(context)
.createModelConnector(ACTION_MODEL_NAME,
getViewDescriptor(context).getModelDescriptor());
by
IValueConnector componentConnector = getBackendController(context)
.createModelConnector(ACTION_MODEL_NAME,
getModelDescriptor(component, context));
- add the method:
protected IModelDescriptor getModelDescriptor(Object component, Map<String, Object> context) {
return getViewDescriptor(context).getModelDescriptor();
}
Regards
Pierre
