[jboss-user] [JBoss Seam] - newbie basic question on components

X490812 do-not-reply at jboss.com
Fri Jun 8 17:11:48 EDT 2007


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?



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052750#4052750

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052750



More information about the jboss-user mailing list