RE: Using checkbox value in Validator validwhen test

2005-04-19 Thread Dornback, Ken
value in Validator validwhen test It is a classic. Look on Ted Husted's website for tip. Basically, you need to clear checkbox value each time in the reset() method of a form bean, because cleared value is not sent to server. So you think that you cleared it, but it is still set (do you u

Re: Using checkbox value in Validator validwhen test

2005-04-19 Thread Michael J.
It is a classic. Look on Ted Husted's website for tip. Basically, you need to clear checkbox value each time in the reset() method of a form bean, because cleared value is not sent to server. So you think that you cleared it, but it is still set (do you use session-scoped form bean?) Michael Jou

Using checkbox value in Validator validwhen test

2005-04-19 Thread Dornback, Ken
Problem: I don't know how to test a checkbox setting in the validwhen test var-value. I have a checkbox and a text field. I only need to validate the text field when the checkbox is checked. I cannot get this to work using validwhen (other validwhens do work that use different types of tests).