1 Reply Latest reply on Mar 22, 2006 1:21 AM by Gavin King

    understanding create=true

    janbols Newbie

      I'm trying to understand why the following doesn't work:

      I have a SFSB:

       @Stateful
       @Name("mySFSB")
       @Scope(ScopeType.SESSION)
       @Interceptors(SeamInterceptor.class)
       public static class MySFSBAction implements MySFSB {
       @In(create=true, required=false) String myString;
       public String action() {
       ...
       }
       }
      

      and a jsf page:
       <h:inputText value="#{myString}"/>
       <h:commandButton type="submit" action="#{mySFSB.action}"/>
      


      I would expect that Seam would create myString and that the value I type in the inputText would get injected into the myString property of my SFSB. However this is not happening. The myString property stays null.

      Can someone explain me why?