Re: Editing a JPA entity

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

RE: Editing a JPA entity

2016-01-07 Thread CRANFORD, CHRIS
stuffs */ } -Original Message- From: C N Davies [mailto:c...@xcogia.com] Sent: Wednesday, January 06, 2016 10:24 PM To: 'Christoph Nenning' <christoph.nenn...@lex-com.net>; 'Struts Users Mailing List' <user@struts.apache.org> Subject: RE: Editing a JPA entity Christoph I unders

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

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

RE: Editing a JPA entity

2016-01-06 Thread C N Davies
: Tuesday, January 5, 2016 6:57 PM To: Struts Users Mailing List <user@struts.apache.org> 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 >

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