Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0.0
-
None
-
Java EE 7 Full Profile, WIldfly 8.0, PrimeFaces 4.0, OmniFaces 1.7
Description
In a web project with Apache DeltaSpike with JSF module, acessing a JSF page with a custom converter/validator encapsuled as a tag, cause the following errors:
Converter:
13:35:23,767 SEVERE [javax.enterprise.resource.webcontainer.jsf.facelets.tag.meta] (default task-6) /converter-test.xhtml @21,67 trueLabel="Yes" Unhandled by MetaTagHandler for type org.apache.deltaspike.jsf.impl.injection.ConverterWrapper
13:35:23,767 SEVERE [javax.enterprise.resource.webcontainer.jsf.facelets.tag.meta] (default task-6) /converter-test.xhtml @21,67 falseLabel="No" Unhandled by MetaTagHandler for type org.apache.deltaspike.jsf.impl.injection.ConverterWrapper
13:35:23,768 SEVERE [javax.enterprise.resource.webcontainer.jsf.facelets.tag.meta] (default task-6) /converter-test.xhtml @26,67 trueLabel="Yes" Unhandled by MetaTagHandler for type org.apache.deltaspike.jsf.impl.injection.ConverterWrapper
13:35:23,768 SEVERE [javax.enterprise.resource.webcontainer.jsf.facelets.tag.meta] (default task-6) /converter-test.xhtml @26,67 falseLabel="No" Unhandled by MetaTagHandler for type org.apache.deltaspike.jsf.impl.injection.ConverterWrapper
Validator:
13:35:42,483 SEVERE [javax.enterprise.resource.webcontainer.jsf.facelets.tag.meta] (default task-7) /validator-test.xhtml @24,93 when="#
" Unhandled by MetaTagHandler for type org.apache.deltaspike.jsf.impl.injection.ValidatorWrapper
The converter do not convert, and submitting the form with a custom validator raises a NullPointerException.
Workaround: Provide a specialized implementation of JsfModuleConfig, overriding isContainerManagedConvertersEnabled as well as isContainerManagedValidatorsEnabled and return false.