You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marc Demlenne <ma...@gmail.com> on 2005/07/15 11:44:44 UTC

validation Framework validwhen

Hello, 

Little question about validwhen. If you have a field which has to be
validated by mask, OR can be bad for the mask IF AND ONLY IF it
remains unchanged, what's the best solution ?

I could use a hidden field which holds the original value, then the
real field, modifiable by user. Then either the field has to be
validated by MASK, or it has to be the same as the hidden one.

How can you define validwhen in this case ? validwhen (field ==
hidden) will be ok, but mask validation will be false, so form will be
refused.

any workaround ? 

Thanks for any help ! 

-- 
Marc Demlenne

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