Re: Struts2 Conversation/OptimisticLockException Handling

2013-11-16 Thread Antonios Gkogkakis
Hi Chris, I don't see the need of a conversation plugin, you can just use the http session to store your detached object. So the flow will be, user requests a page, you load all the domain objects using JPA and you detach them. (Closing the EntityManager does that). Then you put them in the sessio

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