ALREADY_MODIFIED));
> return INPUT;
>}
>catch(Exception ex) {
> addActionError(getText(ERROR_UNEXPECTED_EXCEPTION));
> return ERROR;
>}
> }
>
> /* other stuffs */
>
> }
>
>
>
> -Original Message-
> From: C N Davies
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
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
>
> 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
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
> 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
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
7 matches
Mail list logo