Community

Error: "Factory Method ... with a void return type must have an associated @Out/Databinder"

created by Daniel Posch in JBoss Tools - View the full discussion

Hi everyone,

 

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. However, in my opinion there's nothing wrong. Actually, everything works. Is this an expected behavior?

 

Best Regards, Daniel

 

@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 findHardware() { //...
    }
 
 
}
 

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community