Re: Validation chaining in struts2

2007-08-30 Thread Ted Husted
On 8/30/07, j alex <[EMAIL PROTECTED]> wrote: > Regarding field validations, can you provide any reason why the validwhen > validator is not provided in Struts 2? . I think this is a step backwards > from Struts 1 where we could easily manage conditional validation (validate > fieldb only if fielda

Re: Validation chaining in struts2

2007-08-30 Thread j alex
Ted, Regarding field validations, can you provide any reason why the validwhen validator is not provided in Struts 2? . I think this is a step backwards from Struts 1 where we could easily manage conditional validation (validate fieldb only if fielda & fieldc meet some condition) Also, the valida

Re: Validation chaining in struts2

2007-08-30 Thread Ted Husted
Struts 2 uses a hierarchical approach to validation which could be used to support a multi-page workflow. (Struts 1 simulates a hierarchy by using the page property on the ActionForm.) The validation follows the Java class, not the action mapping. If class2 extends class1, then when class2 is valid

Re: Validation chaining in struts2

2007-08-29 Thread Pavel Sapozhnikov
Hey Joseph sorry I think I need something exactly like this: https://issues.apache.org/struts/browse/STR-443 On 8/29/07, Pavel Sapozhnikov <[EMAIL PROTECTED]> wrote: > > Hey Joseph. I think thats something similar to what I am asking but I am > not even quiet sure. I was also wondering what if I

Re: Validation chaining in struts2

2007-08-29 Thread Pavel Sapozhnikov
Hey Joseph. I think thats something similar to what I am asking but I am not even quiet sure. I was also wondering what if I have a method in class and I have ClassName-methodName-validation.xml file which would validate those base things so then in struts.xml I can do toThatMethod and when it red

Re: Validation chaining in struts2

2007-08-29 Thread j alex
Sounds very similar to the problem i had but no straightforward solution yet ; i've put this for enhancement on JIRA - https://issues.apache.org/struts/browse/WW-2113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41901 Can you please check if this is what you need as

Validation chaining in struts2

2007-08-29 Thread Pavel Sapozhnikov
Hey guys. Could somebody provide some input on validation chaining in s2. Here's what I need to do. So there has to be a base validation which would validate variable x and variable y then every other class has its own validation for example Login class would validate if username and password exist