deployment.archive().addAsWebResource(p, "header.xhtml");
}
private static void addHeaderButtonPage(RichDeployment deployment) {
FaceletAsset p = new FaceletAsset();
p.body("<h:form id='myForm'>");
p.body("<rich:tabPanel id='tabPanel' >");
p.body(" <rich:tab id='tab0' name='tab0'> "); // header='tab0 header' ");
p.body(" <f:facet name='header'>");
p.body(" <span class='myText'>Tab 0</span> ");
p.body(" <a4j:commandLink value='click me' ");
p.body(" styleClass='button' ");
p.body(" action='#{simpleBean.incrementCount()}' ");
p.body(" render='label' ");
p.body(" oncomplete='return false;' ");
p.body(" execute='@this' /> ");
p.body(" </f:facet> ");
p.body(" content of tab 0");
p.body(" </rich:tab>");
p.body(" <rich:tab id='tab1'>");
p.body(" <f:facet name='header'> ");
p.body(" <h:outputText id='label' value='#{simpleBean.count} clicks' /> ");
p.body(" </f:facet> ");
p.body(" content of tab 1");
p.body(" <h:outputText id = 'outputText' value='#{simpleBean.string}' />");
p.body(" </rich:tab>");
p.body("</rich:tabPanel> ");
p.body("</h:form>");
deployment.archive().addAsWebResource(p, "headerButton.xhtml");
}