Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-8572 Support Seam Faces module.
  3. JBIDE-8576

Don't validate injection points with @InputField qualifier

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.M2
    • None
    • cdi
    • None
    • Documentation (Ref Guide, User Guide, etc.)

      We can't know what actual bean will be injected in @Inject @InputField injection points since it depends on input text tag which uses the corresponding validator. This info is available only in runtime. So let's just ignore such injections and don't mark them if we can't find an eligible bean.

      See http://docs.jboss.org/seam/3/faces/latest/reference/en-US/html/components.html#validateForm for details.

      EXECUTE: Import http://anonsvn.jboss.org/repos/jbosstools/trunk/cdi/tests/org.jboss.tools.cdi.seam.faces.core.test/projects/SeamFacesTest project
      EXECUTE: Open SeamFacesTest/src/org/jboss/beans/validation/test/Validation.java
      ASSERT: fields beanOk, bean2Ok fields and method setMyBeanOk() are NOT marked as invalid.
      ASSERT: fields beanBroken, bean2Broken and methods setMyBeanBroken(), setMyBeanBroken() marked as invalid.
      EXECUTE: Open SeamFacesTest/src/org/jboss/beans/validation/test/Validation2.java
      ASSERT: fields bean3Ok, bean4Ok fields and method setMyBeanOk() are NOT marked as invalid.

              alexeykazakov Alexey Kazakov
              alexeykazakov Alexey Kazakov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: