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; } }
<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>
Does Tst have an @Local annotation?