You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2006/03/17 17:54:24 UTC
DO NOT REPLY [Bug 39020] New: - Validator validwhen :Cannot make dependance between two different index in an Array
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39020>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39020
Summary: Validator validwhen :Cannot make dependance between two
different index in an Array
Product: Struts
Version: 1.2.8
Platform: PC
OS/Version: Windows 2000
Status: NEW
Severity: normal
Priority: P2
Component: Action
AssignedTo: dev@struts.apache.org
ReportedBy: christophe.oudot@fr.ibm.com
CC: christophe.oudot@fr.ibm.com
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.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
DO NOT REPLY [Bug 39020] - Validator validwhen :Cannot make dependance between two different index in an Array
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39020>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39020
------- Additional Comments From jakarta@rizzoweb.com 2006-08-21 02:35 -------
Is there any workaround for this bug? I have a similar requirement (need to
check for presence of EITHER one field or at least one item in an array field
(items selected from an HTML list), but have run into the same issue.
Is there any other way to configure the validator to do this kind of check, at
least until this bug gets fixed?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
DO NOT REPLY [Bug 39020] - Validator validwhen :Cannot make dependance between two different index in an Array
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39020>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39020
------- Additional Comments From niallp@apache.org 2006-03-17 17:02 -------
Adding a link to the related thread on the user list:
http://www.mail-archive.com/user%40struts.apache.org/msg43177.html
I had a quick look at the source (ValidWhenParser.g) and I agree it looks like
it should cater for this. I also tried adding a test case (to
TestValidWhen.java) to and got the same result as Christophe.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
DO NOT REPLY [Bug 39020] - Validator validwhen :Cannot make dependance between two different index in an Array
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39020>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39020
------- Additional Comments From wsmoak@apache.org 2006-08-21 02:40 -------
Please add your comment to STR-2802 in JIRA. Struts is no longer using Bugzilla.
https://issues.apache.org/struts/browse/STR-2802
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org