HtmlAjaxValidator myAjaxValidator= new HtmlAjaxValidator();
, but look like it is wrong.
I suggest to use Use application.createComponent(UIBeanValidator.COMPONENT_TYPE) instead of 'new' for RichFaces 3.3.2.GA. Html... Component classes are generated by CDK and could be changed.
Also, the component name could be changed to UIAjaxValidator with future RichFaces versions because we decided to keep name "BeanValidator" for validator ID itself.
I tried to use
UIComponent validator = FacesContext.getCurrentInstance().getApplication().createComponent(UIBeanValidator.COMPONENT_TYPE);
Which class should I cast 'validator ' to have possibility to attach event (onblur) to object ?
Is there manual with correspondens between tag and programmatically method of creating component ?
Thanks in advance.
Check code of the tagHandler for this component.