3 Replies Latest reply on Jul 24, 2006 3:36 AM by denis-karpov

    Seam Application Deployment

    ypasmk

      Ok I'm having some problems with seam...I have defined a simple class which is

      
      
      @Stateless
      @Name("myejb")
      public class TestEjb implements Serializable {
      
       /**
       *
       */
      
       private String mystring="hi koriel";
      
       /* (non-Javadoc)
       * @see uai.utilities.Test#getMystring()
       */
       public String getMystring() {
       return mystring;
       }
      
       /* (non-Javadoc)
       * @see uai.utilities.Test#setMystring(java.lang.String)
       */
       public void setMystring(String mystring) {
       this.mystring = mystring;
       }
      
      
      
      }
      
      


      and in my home.xhtml page I have this

      
      <h:outputText value="#{myejb.mystring}" />
      
      


      but I can't see the string "hi koriel" when I access home.xthml. What am I doing wrong?

        • 1. Re: Seam Application Deployment
          ypasmk

           

          "koriel" wrote:
          Ok I'm having some problems with seam...I have defined a simple class which is
          
          
          @Stateless
          @Name("myejb")
          public class TestEjb implements Test {
          
           /**
           *
           */
          
           private String mystring="hi koriel";
          
           /* (non-Javadoc)
           * @see uai.utilities.Test#getMystring()
           */
           public String getMystring() {
           return mystring;
           }
          
           /* (non-Javadoc)
           * @see uai.utilities.Test#setMystring(java.lang.String)
           */
           public void setMystring(String mystring) {
           this.mystring = mystring;
           }
          
          
          
          }
          
          


          and in my home.xhtml page I have this

          
          <h:outputText value="#{myejb.mystring}" />
          
          


          but I can't see the string "hi koriel" when I access home.xthml. What am I doing wrong?


          • 2. Re: Seam Application Deployment
            gavin.king

            You have no local interface.

            • 3. Re: Seam Application Deployment
              denis-karpov

              And also, when you bind properties, it has to be @stateful.