I try to use s:button with action attribute and i use EntityHome class: xml-declarations kinds in components.xml:
<factory name="myEntity" value="#{myEntityHome.instance}"/> <fwk:entity-home name="myEntityHome" entity-class="com.mycompany.MyEntity" entity-manager="#{entityManager}"/>
<s:validateAll> <div> <table> <tr> <td><h:outputLabel value="#{messages['common.name']}"/></td> <td><s:decorate><h:inputText value="#{myEntity.name}"/></s:decorate></td> </tr> <tr> <td><h:outputLabel value="#{messages['common.description']}"/></td> <td><h:inputText value="#{myEntity.description}"/></td> </tr> </table> </div> </s:validateAll>
s:link and s:button do *not* submit the form