[prev in list] [next in list] [prev in thread] [next in thread] 

List:       struts-user
Subject:    Re: Struts 1.3.5 - Radio Button validation
From:       Christopher Schultz <chris () christopherschultz ! net>
Date:       2007-01-31 1:08:57
Message-ID: 45BFEC29.5080009 () christopherschultz ! net
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Laurie,

Laurie Harper wrote:
> Actually, assuming it's a radio button group that maps to a single
> property, you probably just need the 'required' validation to ensure
> that property has a value. You should only need 'validwhen' if there are
> multiple properties involved, or if you need to express complex
> constraints on a single property.

Sorry, you're right. The OP's question threw me off by saying that he
wanted to ensure that at least one of the choices was picked. I didn't
realize he was talking about radio buttons where you either get /one/
thing or nothing.

If he's got checkboxes (which is what I was thinking, even though he
clearly said radio buttons) or multiple unrelated radio buttons,
validwhen may be necessary. But probably not in this case.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFv+wp9CaO5/Lv0PARAqcrAKCWIwsRrhj/CYjhF291BYGv4NjjIACgpYL8
EdGlL713saF+yNQrt6AyeaE=
=OJQI
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic