2 Replies Latest reply on Jan 18, 2007 4:14 AM by jalupa

    Facelets tag source file and s:button/s:link

    jalupa

      s:button and s:link don't work well when they are used in parameterized tag source files.

      Suppose you have this simple seam component:

      @Name("simpleSeamComponent")
      public class SimpleSeamComponent {
      
       private String message;
      
       public String getMessage() {
       return this.message;
       }
      
      
       public String action() {
       this.message = "Seam rocks!";
       return null;
       }
      
      }


      and an XHTL-facelet page:
      <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:aca="http://www.aca-it.be/taglib/jsf" >
      
      
      <body>
      
       <aca:tagSource bean="#{simpleSeamComponent}" />
      
      </body>
      </html>


      The facelets tag source file contains:
      <h:form>
       <h:outputText value="Value: #{bean.message}" />
       <h:commandButton value="h:commandButton" action="#{bean.action}" />
       <s:button value="s:button" action="#{bean.action}" />
       </h:form>


      When you push the h:commandButton the action is executed. When you push the s:button the action isn't executed.

      Is this expected behavior?