2 Replies Latest reply on Nov 12, 2013 7:37 AM by sh_

    Incorrect validation "Value ... is not unique" in faces-config.xml

    sh_

      <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"

          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">

       

           <render-kit>

              <renderer>

                  <component-family>javax.faces.Output</component-family>

                  <renderer-type>javax.faces.Text</renderer-type>

                  <renderer-class>com.xxx.HtmlTextRenderer</renderer-class>

              </renderer>

       

              <renderer>

                  <component-family>javax.faces.Input</component-family>

                  <renderer-type>javax.faces.Text</renderer-type><!-- this results in  'Value javax.faces.Text is not unique.', but its needed -->

                  <renderer-class>com.xxx.InputTextRenderer</renderer-class>

              </renderer>

      </render-kit>  

      </faces-config>

       

      jbossToolsValidationFacesConfig.PNG

       

      This results in "Value javax.faces.Text is not unique". It is not unique, but each renderer has different component-family. So these should be corrrect values.

       

      I cannot find solution for similar problem, but I am sorry, if its a duplicate.

      Eclipse Kepler (build 20130614-0229), JBossTools:

      jbossToolsVersions.PNG

      I am also not able to find effective workaround for this (to disable only this one validation, not whole validation on a project module).