dev@javaserverfaces.java.net

Re: Validators

From: Ilya Ermolov <ilya-ermolov-java_at_yandex.ru>
Date: Fri, 18 Jul 2008 00:31:24 -0700 (PDT)

Ilya Ermolov wrote:
>
> Hello! I have problem using validators in Woodstock components.
>
> I have 2 drop down lists (webuijsf:dropDown) and thier content must be
> different.
> How to solve this problem?
>
> I implemented Validator interface, but validate method can't read
> information from other drop down.
>
I invented simple solution. I binded my component with DropDown object in
bean. Then created method dropDown_validate and used it in
validatorExpresion property. In dropDown_validate I compare new value and
selectedValue of second dropDown in binded object.
-- 
View this message in context: http://www.nabble.com/Validators-tp17879803p18524010.html
Sent from the javaserverfaces dev mailing list archive at Nabble.com.