1 Reply Latest reply on Jun 8, 2007 5:15 PM by Gavin King

    newbie basic question on components

    John McClain Newbie

      I am checking out seam and not understanding something very basic.
      I have a simple state less session bean

      @Stateless
      @Name("tst")
      public class TstBean implements Tst {
      
       @Logger private Log log;
      
       @In FacesMessages facesMessages;
      
      
       private String strTst;
      
       public void tst()
       {
       //implement your business logic here
       log.info("tst.tst() action called strTst = " + strTst);
       facesMessages.add("tst");
       }
      
       public String getStrTst() {
       return strTst;
       }
      
       public void setStrTst(String strTst) {
       this.strTst = strTst;
       }
      
      }

      and a simple view
      <ui:define name="body">
      
       <h:messages globalOnly="true" styleClass="message"/>
      
       <rich:panel>
       <f:facet name="header">tst</f:facet>
      
       <h:form id="tstForm">
       <s:decorate id="valueDecoration" template="layout/edit.xhtml">
       <ui:define name="label">strTst</ui:define>
       <h:inputText id="value" required="true" value="#{tst.strTst}" />
       </s:decorate>
       <h:commandButton id="tst" value="tst!"
       action="#{tst.tst}"/>
      
       </h:form>
      
       </rich:panel>
      
      </ui:define>


      Whay am I getting this error when I click on the command button?:
      /tst.xhtml @22,70 value="#{tst.strTst}": Bean: org.javassist.tmp.java.lang.Object_$$_javassist_88, property: strTst

      from the exception
      on: /tst.xhtml @22,70 value="#{tst.strTst}": Bean: org.javassist.tmp.java.lang.Object_$$_javassist_88, property: strTst

      I am missing something basic; How is the form data bound to the component?