2 Replies Latest reply on Sep 27, 2008 8:16 PM by ipazmino

    Session bean property not found

    ipazmino

      Hi,


      I' triying to load a dataTable and show just a user-selected number of rows. The number of rows to display is set by an inputText component and the property is managed at a stateful bean.


      The jsf component binds the pageSize property as follows:



      <h:outputLabel for="inboxPageSize" value=" Page size">
           <h:inputText value="#{inbox.pageSize}" id="inboxPageSize"/>
      </h:outputLabel>




      The stateful component is in session scope, and is declared as follows


      @Stateful
      @Scope(ScopeType.SESSION)
      @Name("inbox")
      public class InboxBean implements Serializable, Inbox




      and the property is declared with an initialization value of five, and given getter and setter.


      When I try to access the page, I get the following error:



      javax.el.PropertyNotFoundException: /inbox/inbox.xhtml @17,85 rows="#{inbox.pageSize}": Property 'pageSize' not found on type org.javassist.tmp.java.lang.Object_$$_javassist_1



      Why is that? Should I annotate directly to the property as an @In - @Out value?


      Once I delete the inputText component from the view, it works just fine.


      Thanks in advance,