Re: [S2] Handling input result on a CRUD action

2008-11-30 Thread Adam Ruggles
I agree with Dave as well. I ended up creating one interceptor and one interface. The interceptor registers a PreResultListener. I then just check for Action.INPUT in the result code. If input is returned it will call the prepareInputErrors method if it's available. So far it works perfectly.

Re: [S2] Handling input result on a CRUD action

2008-11-29 Thread Burton Rhodes
Just read Dave's thought. Much better. On 11/29/08, Burton Rhodes <[EMAIL PROTECTED]> wrote: > Just a thought but why don't put a redirect acrtion in your result > 'input' on your update action. That way if it fails it will run > prepareEdit. > > On 11/29/08, Adam Ruggles <[EMAIL PROTECTED]> wrote

Re: [S2] Handling input result on a CRUD action

2008-11-29 Thread Dave Newton
--- On Sat, 11/29/08, Burton Rhodes <[EMAIL PROTECTED]> wrote: > Just a thought but why don't put a redirect acrtion in your result > 'input' on your update action. That way if it fails it will run > prepareEdit. Under default circumstances you'd lose your error messages. Dave

Re: [S2] Handling input result on a CRUD action

2008-11-29 Thread Burton Rhodes
Just a thought but why don't put a redirect acrtion in your result 'input' on your update action. That way if it fails it will run prepareEdit. On 11/29/08, Adam Ruggles <[EMAIL PROTECTED]> wrote: > > I have a problem I'm trying to solve when the validation fails on a crud > action. This action h

Re: [S2] Handling input result on a CRUD action

2008-11-29 Thread Adam Ruggles
Do you think I would need to check the actionErrors/fieldErrors rather then just check for the input return value? newton.dave wrote: > > You could just check to see if there are any errors before running the > prepare logic; this could be done in an interceptor as well > "prepareWhenErrors" o

Re: [S2] Handling input result on a CRUD action

2008-11-29 Thread Dave Newton
You could just check to see if there are any errors before running the prepare logic; this could be done in an interceptor as well "prepareWhenErrors" or something. Dave --- On Sat, 11/29/08, Adam Ruggles <[EMAIL PROTECTED]> wrote: > I have a problem I'm trying to solve when the validation > fa