5 Replies Latest reply on Jul 5, 2007 11:58 AM by Brian Dillon

    Using non-EJB annotated POJO as backing bean

    Brian Dillon Newbie


      I am trying use non-EJB annotated POJOs as my seam backing beans, but I when I access the object using

      <h:outputText value="#{FirstPageBB.name}"/>

      I get the following error;

      javax.servlet.ServletException: Cannot get value for expression '#{FirstPageBB.name}'

      My bean is annotated and declared like;

      public class FirstPageBB implements Serializable {

      Since the example/test I am working does not rely on the data being persisted I wanted to get this working without using EJB or JPA. Can POJOs be used as backing beans with seam or is this limited to Entitys (either EJB or POJOs) ?