Why don't you use separate Actions for each stage? felix
On Sep 30, 2009, at 2:37 PM, Michal Charemza wrote: > Hi, > > I'm making a wizard with multiple stages, all being submitted to the > same action. The stage is in the URL like: > > /somestageofwizard/ > /anotherstageofwizard/ > > etc. > > Each wizard stage has a form, and need to be validated. However, I > only want each stages' validators to run on that stage. What is the > best way of going about this? > > I have tried using regex validators for "stagename": each test against > a particular stage name, and "provide" a dependency to the validators > specific to that stage. However, this always results in the > "stagename" being marked as invalid, as it can only satisfy one of the > regex validators. I would like a way to "provide" a value that is > equal to the submitted stagename: this would allow attributes like > > depends="somestageofwizard" > > in the validator definitions, to ensure they only run on their stage. > > Is there someway to do this? Is there maybe a better way? > > Michal. > > _______________________________________________ > users mailing list > [email protected] > http://lists.agavi.org/mailman/listinfo/users > -- Felix Gilcher Bitextender GmbH Paul-Heyse-Str. 6 D-80336 München T: +49 89 57 08 15 16 F: +49 89 57 08 15 17 M: +49 172 840 88 28 [email protected] http://www.bitextender.com/ Amtsgericht München, HRB 174280 Geschäftsführer: David Zülke, Florian Clever _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
