Hi,
I am developing a seam application . To handle the exceptions I have added the following code in pages.xml.
<exception class="javax.persistence.OptimisticLockException"> <end-conversation/> <redirect view-id="/common/error.xhtml"> <message>Another user changed the same data, please try again</message> </redirect> </exception>
<h:messages globalOnly="true" />