[
https://issues.jboss.org/browse/JBIDE-8576?page=com.atlassian.jira.plugin...
]
Daniel Azarov updated JBIDE-8576:
---------------------------------
Description:
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...
for details.
EXECUTE: Import
http://anonsvn.jboss.org/repos/jbosstools/trunk/cdi/tests/org.jboss.tools...
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.
was:
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...
for details.
EXECUTE: Import
http://anonsvn.jboss.org/repos/jbosstools/trunk/cdi/tests/org.jboss.tools...
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 beanOk, bean2Ok fields and method setMyBeanOk() are NOT marked as invalid.
Don't validate injection points with @InputField qualifier
----------------------------------------------------------
Key: JBIDE-8576
URL:
https://issues.jboss.org/browse/JBIDE-8576
Project: Tools (JBoss Tools)
Issue Type: Sub-task
Components: cdi (jsr-299)
Reporter: Alexey Kazakov
Assignee: Daniel Azarov
Fix For: 3.3.0.M2
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...
for details.
EXECUTE: Import
http://anonsvn.jboss.org/repos/jbosstools/trunk/cdi/tests/org.jboss.tools...
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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira