Re: Struts2 Conversation/OptimisticLockException Handling

2013-11-15 Thread Gabriel Belingueres
Hi Chris. One alternative is to use CDI which supports conversation scope too (I know there is a CDI plugin. I never used though). Last time I checked the spring- webflow integration was pretty outdated (it did not integrate with version 2.x). Another alternative is to go use JBoss Seam. I made m

Struts2 Conversation/OptimisticLockException Handling

2013-11-15 Thread CRANFORD, CHRIS
Recently I was looking at a particular pattern we used and noticed that it exposed a bit of risk. In the past we generally queried our domain object, showed the user the form where they could maintain the record and within a hidden field, we maintained the version of that record. During the su

Antwort: Showing Action Exception as Ajax Errors

2013-11-15 Thread Christoph Nenning
> Hi, > > We are using struts2 JSONValidationWithInterceptor. This interceptor > grabs the errors from validation and convert them to json message > How can we have same feature! An interceptor which grabs the action > exceptions and serialize them as json errors. > > I try below interceptor. Wh

Showing Action Exception as Ajax Errors

2013-11-15 Thread Alireza Fattahi
Hi, We are using struts2 JSONValidationWithInterceptor. This interceptor grabs the errors from validation and convert them to json message How can we have same feature! An interceptor which grabs the action exceptions and serialize them as json errors. I try below interceptor. When an exception