1 Reply Latest reply on Sep 12, 2008 4:44 AM by Joshua Jackson

    In Custom Tag how to add h:commandbutton with action

    Sandeep Adulkar Newbie
      Hi, I created a custom tag, below is the code snippet


      In this class I am using ResponseWriter to generate the content.
      I am trying to add a button and associate action to it but it doesn't provide me any option to associate action to the commandbutton
      "<h:commandButton action="#{childdiv.addChildDiv}" value="add div"></h:commandButton>"
      Also the XHTML doesn't even recognize the h:commandbutton tag
      "HtmlCommandButton htmlCommandButton = new HtmlCommandButton();
      writer.startElement("h:commandButton", htmlCommandButton);
      writer.writeAttribute("value", "add div", "");

      Please suggest