@Name(value="transientStateCleaner") @Scope(value=EVENT) @Install(precedence=10) public class TransientStateCleaner extends Object implements Serializable
This can happen if a low level Listener decides to RollBack the transaction.
In this case the DocumentModel won't be saved to the DB, but since the ApplyModelValue JSF phase has run, the DocumentModel will have been modified resulting in a Dirty state inside the Context.
We want to keep this dirty state as long as we stay on the same Tab, but as soon as we navigate somewhere else, we must reset the state.
Constructor and Description |
---|
TransientStateCleaner() |
Copyright © 2015 Nuxeo SA. All rights reserved.