Niall,
Shall try that later. At work just now, so can't download the new version here.
Could I just ask quickly - does the validation take place client side or server side? - Could you help with the drop down issue I had as a result?
Niall Pemberton wrote:
I fixed a bug in Version 1.2.5 to do with numeric values in validwhen. Can you try it out and see if it fixes your problem.
Its available here:
http://svn.apache.org/dist/struts/v1.2.5/
Please note,Version 1.2.5 is only a *test* build and hasn't been "released"
Niall
----- Original Message ----- From: "Cato (Pete)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 27, 2004 12:18 AM
Subject: validwhen problem
I am trying to force a field to have a value if a checkbox is checked using validwhen in my validation.xml.
I am having a few problems:
1) The field to fill in has an initial value of 0. If this is zero and the box is unchecked this is valid ( I can't get this to work ) I can get it to check for an empty field.
2) If the checkbox is checked I need the value to not be 0. I can do this but not at the same time as the above check!!
3) When validation fails my page returns an exception about a drop down list that was set up in a 'set-up' action prior to the page being
validated.
Any help on this would be much appreciated.
Pete.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]