Issue Details (XML | Word | Printable)

Key: STR-2802
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Oudot Christophe
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Struts 1

Validator validwhen cannot test between two different indices in array

Created: 18/Mar/06 12:54 AM   Updated: 05/Jun/08 06:18 AM
Return to search
Component/s: Core
Affects Version/s: 1.2.8
Fix Version/s: 1.3.10, 1.4.0

Environment:
Operating System: Windows 2000
Platform: PC

Bugzilla Id: 39020


 Description  « Hide
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.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Don Brown made changes - 23/Apr/06 04:52 AM
Field Original Value New Value
issue.field.bugzillaimportkey 39020 28093
Henri Yandell made changes - 21/Mar/07 05:59 AM
Fix Version/s 1.4.0 [ 21795 ]
Status Open [ 1 ] Closed [ 6 ]
Resolution Fixed [ 1 ]
Assignee Struts Developers [ dev@struts.apache.org ]
Niall Pemberton made changes - 10/Sep/07 10:41 PM
Fix Version/s 1.4.0 [ 21795 ]
Fix Version/s 1.3.10 [ 21840 ]
Paul Benedict made changes - 10/Sep/07 11:28 PM
Summary Validator validwhen :Cannot make dependance between two different index in an Array Validator validwhen cannot test between two different indices in array
Paul Benedict made changes - 05/Jun/08 06:18 AM
Fix Version/s 1.4.0 [ 21795 ]