0 Replies Latest reply on Sep 8, 2009 9:57 AM by Jack Y

    call validator class from java file

    Jack Y Newbie

      Hi to all,


                    i want to call validator class from java file




      <h:selectOneMenu id="prcompname1" validator="#{empmasterHome.validateComponentName}" value="#{sys.prcompId}" rendered="#{sys.prcompId==null}">
           <f:selectItem itemLabel="#{messages.Select}" itemValue="select"/>
           <f:selectItems value="#{empmasterHome.getComponentName(i)}"/>
           <a:support event="onchange" reRender="prcompNameField,calcType,prCompDesc,AmountField" ajaxSingle="true" action="#{empmasterHome.getCompDesc(sys.prcompId,i)}"/>
      </h:selectOneMenu>
      





      validator="#{empmasterHome.validateComponentName}"




      Instead of this i want to call
      now its asking for




      this.validateComponentName(facescontext,UIcomponent,value)





      what value to be passed on



      (facescontext,UIComponent,value)


      from Java.. How's it possible.....