OpenFaces
OpenFaces copied to clipboard
SM OR - ThreadLocal constructingView not reverted when super.publishEvent throws an error
When OpenFacesApplication.publishEvent delegate the call to the super class and an Exception is thrown somewhere along the stack then the value of the ThreadLocal constructingView is not reverted and stays with the same value for any subsequent request on the same thread.
To resolve this issue the call to super should be placed in a try/catch block.