You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Niall Pemberton (JIRA)" <ji...@apache.org> on 2007/09/11 00:42:34 UTC

[jira] Updated: (STR-2802) Validator validwhen :Cannot make dependance between two different index in an Array

     [ https://issues.apache.org/struts/browse/STR-2802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niall Pemberton updated STR-2802:
---------------------------------

    Fix Version/s:     (was: 1.4.0)
                   1.3.10

The fix for STR-3088 has also back-ported the fix for this issue into the 1.3 Branch - see revision 569606:

http://svn.apache.org/viewvc?view=rev&revision=569606

> Validator validwhen :Cannot make dependance between two different index in an Array
> -----------------------------------------------------------------------------------
>
>                 Key: STR-2802
>                 URL: https://issues.apache.org/struts/browse/STR-2802
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.8
>         Environment: Operating System: Windows 2000
> Platform: PC
>            Reporter: Oudot Christophe
>             Fix For: 1.3.10
>
>
> This code in the validator.xml fails with this error : "unexpected token adr.."
>   
> <field property="adr[0]" depends ="validwhen"> 
>   <var> 
>       <var-name>test</var-name> 
>       <var-value>((*this*!=null) or (adr[1] != null ))</var-value> 
>   </var> 
> </field> 
> adr is an array of two adress lines. Only one of them needs tobe filled.
> According to the document of the validator, it should work.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.