|
Encounter two other issues with create component:
- cancel on component dialog leaves unsaved component in valueContext
- as that could be dialog of any component, we can't have a custom cancel action to reset the value context (except wrapping action with a mutator..I don't want to go that way)
- experimented with valueContext.intercept(), but as we want to intercept only in create page action, we again don't know when the action is finished and we should remove the intercepter (also dynamically adding/removing interceptors is probably not a good idea either)
- observation not usable as well as cancel doesn't trigger any observation (unless triggered manually in default cancel action, same way as in the commit action...that probably doesn't make sense)
- new component not saved when no dialog field is touched
- if no field is touched on the component dialog, binder.hasChages() skipps the save..this calls for extracting finally the session save from CommitingBinder
|