How to specify a validator for an input component inside a composite component?
Should I register a custom validator in faces-config.xml if I'm using JSF 2.0.4? My custom validator uses Validator interface which is javax.faces.validator.Validator . <cc:myComp id="customcomp1" ... /> <cc:myComp id="customcomp2" ...> <f:validator id="myvalidator" for="myComp" /> </cc:myComp> myComp.xhtml <cc:interface> <cc:attribute ... /> <!-- more attributes --> </cc:interface> <cc:implementation> <h:panelGroup layout="block"> <h:inputText id="firstName" ... /> <h:inputText id="middleName" ... /> <h:inputText id="lastName" ... /> </h:panelGroup> </cc:implementation> As per the code