4 Replies Latest reply on Apr 13, 2010 5:42 AM by akazakov

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

    poschd

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