2 Replies Latest reply on Feb 7, 2008 5:52 PM by John Peter Bievenour

    [Beginner]SLSB in seam

    John Peter Bievenour Newbie

      I've been trying to figure out this very simple question for a while. If I have a stateless session bean and place a private property with getters/setters in it:

      @Stateless
      @Name("MySLSB")
      ...
      ...
      ...
      private int value;
      
      public int getValue() {
       return value;
      }
      
      public void setValue(int v) {
       this.value = v;
      }
      


      and reference it in the xhtml file:
      <h:outputText id="myval" value="#{MySLSB.value}"/>
      


      Why do I get the "property not found" exception? Shouldn't a value on a SLSB be accessible, even though it's state is not saved?