Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-650

Custom JSF Converters/Validators error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0
    • 1.0.1
    • JSF-Module
    • 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="#

      {validatorBean.validateValue}

      " 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.

      Attachments

        1. DELTASPIKE-650.patch
          28 kB
          Gerhard Petracek
        2. deltaspike-converter-validator.7z
          4 kB
          Juliano Marques

        Activity

          People

            gpetracek Gerhard Petracek
            julianomqs Juliano Marques
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: