Re: Editing a JPA entity

2016-01-07 Thread Ken McWilliams
ALREADY_MODIFIED)); > return INPUT; >} >catch(Exception ex) { > addActionError(getText(ERROR_UNEXPECTED_EXCEPTION)); > return ERROR; >} > } > > /* other stuffs */ > > } > > > > -Original Message- > From: C N Davies

RE: Editing a JPA entity

2016-01-07 Thread CRANFORD, CHRIS
rn ERROR; } } /* other stuffs */ } -Original Message- From: C N Davies [mailto:c...@xcogia.com] Sent: Wednesday, January 06, 2016 10:24 PM To: 'Christoph Nenning' ; 'Struts Users Mailing List' Subject: RE: Editing a JPA entity Christoph I understand why this happ

Re: Editing a JPA entity

2016-01-07 Thread Nick Broadhurst
Just to make sure - you are POSTing the object back to the action and THEN merging the entity correct? Not just calling the merge function in the action from the page? Sorry, I had to ask because it sort of sounds like that is what you are saying. I am using Struts2 and JPA and I routinely post obj

RE: Editing a JPA entity

2016-01-07 Thread Christoph Nenning
> > Christoph I understand why this happens, I was simply asking if there was a > better way to do this using some struts session magic or such. Seems there > isn't so I'll just do it the old long winded way. > If you want to store attached entities in session you can make your actions Sessio

RE: Editing a JPA entity

2016-01-06 Thread C N Davies
net] Sent: Tuesday, January 5, 2016 6:57 PM To: Struts Users Mailing List Subject: Re: Editing a JPA entity > I'm using an action to retrieve a list of entities and render these as > a list, the user can then select an edit button that calls an action > that retrieves the indiv

Re: Editing a JPA entity

2016-01-04 Thread Christoph Nenning
> I'm using an action to retrieve a list of entities and render these as a > list, the user can then select an edit button that calls an action that > retrieves the individual entity and renders the edit page. Once the user has > completed editing they hit the save button which calls the action th

Editing a JPA entity

2016-01-04 Thread C N Davies
I'm using an action to retrieve a list of entities and render these as a list, the user can then select an edit button that calls an action that retrieves the individual entity and renders the edit page. Once the user has completed editing they hit the save button which calls the action that calls