Re: Validate only if existing

2004-12-28 Thread Erik Weber
The idea of requiredif is to require a value for a field depending on whether there is/isn't a value for another *field*. I'm not sure if you can use it to hinge on other (non-field) values. For example, if a user lives in an apartment, you want him to indicate his apartment number. You have a

Validate only if existing

2004-12-28 Thread Daniel Lipofsky
I have a field I want to require only if the bean it exists inside exists (is not null). I cannot use validwhen because I am using struts 1.1. I tried to use requiredif like this field[0]