title: How to add a component to an existing HTML using Webfirmframework?
body: <p>I am trying to generate a dynamic HTML using Java and the webfirmframework.</p>
  
  <p>Is there a way to build individual components like Table and Div without enclosing them in Html() ?
  I have over 10+ pieces of business logic and each generates an individual table of data. All these 10+ tables must be displayed inside a HTML.</p>
  
  <p>Creating a single method for generating all these 10+ tables is making the code unreadable. </p>
  
  <p>Requirement is to be able to build individual components and then concatenate them together to generate the final HTML page.</p>
  
  <p>This is what I tried and it throws errors.</p>
  
  <p><strong><code>The constructor Table(MyServiceClass, CustomAttribute, CustomAttribute) is undefined</code></strong></p>
  
  <pre><code>private void generateTable(final MyCSS hcCss) {
          new Table(this,             
              new CustomAttribute("cellspacing", "0"),
              new CustomAttribute("cellpadding", "3")) {{
              new TBody(this) {{
                  new Tr(this) {{
                      new Td(this,
                          new Style("padding: 3px")) {{
                          new NoTag(this, "XXXX");
                      }};
                  }};
              }};
          }};
      }
  </code></pre>