Hi,
I have an array of two adress lines in my form.
I want to check if AT LEAST one line is not empty.

I want to use the validwhen to check the first line.
The first line is valid only it's not null or the second line is not null.

But I have an error on my page when the instruction is called in the
validator "unexpected token adr ..." .

here is my code  
<field property="adr[0]" depends ="validwhen">
  <var>
      <var-name>test</var-name>
      <var-value>((*this*!=null) or adr (adr[1]))</var-value>
  </var>
</field>


Is it possible to check that with the validwhen?


--
View this message in context: 
http://www.nabble.com/Validwhen-and-array-t1291360.html#a3435828
Sent from the Struts - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to