It's purpose is to copy the pervious property values into the current
Action's properties...

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Eric Pugh
> Sent: Sunday, January 11, 2004 8:20 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [OS-webwork] Chaining Validation messages?
> 
> 
> You are right, I believe the validation is happening, and not 
> seen in the UI.  I'll try and play around with that.  So 
> there is nothing that I need to do manually in my interceptor 
> or anything, the chain interceptor's function is the copying 
> of the value stack over...
> 
> Thanks,
> 
> Eric
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] 
> Behalf Of 
> > Jason Carreira
> > Sent: Sunday, January 11, 2004 4:43 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [OS-webwork] Chaining Validation messages?
> > 
> > 
> > Did you debug to make sure the validations are not happening? I bet 
> > what's happening is that the validations are running, but after you 
> > chain, the error messages are masked by the (empty) error 
> messages of 
> > the RetrieveUser action.. The chain interceptor ref should help by 
> > copying over the error message maps. It's not helping? It 
> needs to be 
> > applied to the RetrieveUser action, not this action...
> > 
> > > -----Original Message-----
> > > From: Eric Pugh [mailto:[EMAIL PROTECTED]
> > > Sent: Saturday, January 10, 2004 12:20 PM
> > > To: Os-Webwork (E-mail)
> > > Subject: [OS-webwork] Chaining Validation messages?
> > > 
> > > 
> > > Hi all,
> > > 
> > > I have a "Save" action where I save the data, and if an input
> > > is required, it forwards to another "Retrieve" action to 
> > > populate the data I need in the Velocity template.  I then 
> > > added in validation to my "Save" action.
> > > 
> > > Now, if I change it to not chain to the "Retrieve" action,
> > > but instead go directly to the Velocity template, then it 
> > > valiates and shows me the errors. But, it is missing data 
> > > that the "Retrieve" action provided.  If I put the "Retrieve" 
> > > action back then it never performs the validations.  My 
> > > xwork.xml looks like this:
> > > 
> > >           <action name="SaveUser"
> > > class="com.upstate.catalog.actions.users.SaveUserAction">
> > >                   <result name="success" 
> > > type="chain">RetrieveUser</result>
> > >                   <result name="input" 
> > > type="chain">RetrieveUser</result>
> > >                   <interceptor-ref name="defaultComponentStack"/>
> > >                   <interceptor-ref name="userEdit"/>
> > >                   <interceptor-ref 
> > > name="validationWorkflowStack"/>
> > >           </action>
> > > 
> > > I though I needed something like this:
> > >                   <interceptor-ref name="chain"/>
> > > 
> > > added, but it doesn't seem to have any effect.
> > > 
> > > Thanks,
> > > Eric Pugh
> > > 
> > > 
> > > 
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: Perforce Software. Perforce is 
> > > the Fast Software Configuration Management System 
> offering advanced 
> > > branching capabilities and atomic changes on 50+ platforms. Free 
> > > Eval! http://www.perforce.com/perforce/loadprog.html
> > > 
> > > _______________________________________________
> > > Opensymphony-webwork mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> > > 
> > 
> > 
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Perforce Software. 
> Perforce is the 
> > Fast Software Configuration Management System offering advanced 
> > branching capabilities and atomic changes on 50+ platforms. 
> Free Eval! 
> > http://www.perforce.com/perforce/loadprog.html
> > _______________________________________________
> > Opensymphony-webwork mailing list 
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to