[
https://jira.jboss.org/jira/browse/JBIDE-6176?page=com.atlassian.jira.plu...
]
Alexey Kazakov reassigned JBIDE-6176:
-------------------------------------
Assignee: Viacheslav Kabanovich (was: Alexey Kazakov)
There is a bug in Seam model.
If there is @Out after @DataModel:
@DataModel("somethings")
@Out
private List<String> somethingList;
then Seam model doesn't add @DataModel with "something" name. So the
validator doesn't see this Seam variable.
I've added JUnit test for this issue. See
org.jboss.tools.seam.core.test.SeamValidatorsTest.testFactory()
Seam validator doesn't recognize Databinder associated with
Factory.
--------------------------------------------------------------------
Key: JBIDE-6176
URL:
https://jira.jboss.org/jira/browse/JBIDE-6176
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Seam
Affects Versions: 3.1.0.GA
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Fix For: 3.1.1
The following piece of code causes the error 'Factory Method "somethings"
with a void return type must have an associated @Out/Databinder' to be displayed'.
But it should not.
@Name("somethingManager")
@Scope(ScopeType.CONVERSATION)
public class SomethingManager implements Serializable {
@DataModel("somethings")
@Out
private List<Something> somethingList;
@DataModelSelection
@Out(value = "something", required = false, scope = ScopeType.SESSION)
private Hardware selectedSomething;
@Factory(value = "somethings") // !Error is displayed right here!
public void findSomething() { //...
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira