Re: Conditional Validation

2007-11-03 Thread Gary Affonso
[EMAIL PROTECTED] wrote: Can anyone tell me how to do conditional validation in struts 2? In one form I want validations for a particular category (say Category XYZ) only if the candidate in that. If he is NOT Category XYZ then by checking a checkbox he should be able to skip the validations f

Re: Struts 2, file tag, accept attribute not working?

2007-11-03 Thread Martin Gainty
you have been provided a working solution.. If you feel the accept attribute does'nt perform the behaviour you expect you may 1)File a JIRA saying this tag isnt accomplishing the expected behaviour https://issues.apache.org/struts/secure/Dashboard.jspa 2)Download the Tag source and modify to your

Re: Struts 2, file tag, accept attribute not working?

2007-11-03 Thread Anton Pussep
Modifying FileUploadInterceptor or settings its parameters in struts.xml is not a proper solution since I have two s:file fields in my form and both require different content types. I am not looking for a work around, I rather have the question: Is the accept attribute working at all and if it doe

Validating array in S1

2007-11-03 Thread Pavel Sapozhnikov
Hi guys so I have a question I have a List in a form each entry in the List contains a text box and two check boxes and that is indexed in the form like I am using indexed properties. Anyway so I am trying to validate one of the check boxes I want to say that there has to be EXACTLY ONE checked che

Conditional Validation

2007-11-03 Thread naveen472-m
Can anyone tell me how to do conditional validation in struts 2? In one form I want validations for a particular category (say Category XYZ) only if the candidate in that. If he is NOT Category XYZ then by checking a checkbox he should be able to skip the validations for that. I am not able find