setValidator

Hi.

How can i use the setValidator method. I tried this, but i dosen't work.

this.dropdown2.setValidator( getApplication().createMethodBinding("#{dropdown2_validate}", null));

Here is the validator method :

public void dropdown2_validate(FacesContext fc, UIComponent uic, Object o) {

[316 byte] By [joki] at [2007-11-26 11:20:19]
# 1
Where is the method defined? The method binding should start with the instance name of the bean on which the method is defined, e.g.#{Page1.dropdown2_validate}// Gregory
gjmurphy at 2007-7-7 3:35:43 > top of Java-index,Development Tools,Java Tools...