title: How to render a composite component using a custom renderer?
body: <p>I would like to know how to render a composite component, through Java,
  I mean I have:</p>
  
  <pre><code>&lt;myowntags:selectOneRadio&gt;
    &lt;f:selectItem itemValue="value0" itemLabel="This is the value 0" /&gt;
    &lt;f:selectItem itemValue="value1" itemLabel="This is the value 1" /&gt;
    &lt;f:selectItem itemValue="value2" itemLabel="This is the value 2" /&gt;
  &lt;/myowntags:selectOneRadio&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;myowntags:selectOneRadio&gt;
    &lt;f:selectItems  value="#{controller.items}"  /&gt;
  &lt;/myowntags:selectOneRadio&gt;
  </code></pre>
  
  <p>and I would like to create a Java class to render it.</p>
  
  <p>I know how to render a custom component without using composite, but since, to render a component I have to specify some values on the block:</p>
  
  <pre><code>&lt;renderer&gt;
      &lt;component-family&gt;javax.faces.SelectBoolean&lt;/component-family&gt;
      &lt;renderer-type&gt;javax.faces.Checkbox&lt;/renderer-type&gt;
      &lt;renderer-class&gt;com.myapp.CustomCheckboxRenderer&lt;/renderer-class&gt;
  &lt;/renderer&gt;
  </code></pre>
  
  <p>then I get lost, because I don't know the values of those parameters
  inside the render tag for a composite component.</p>
  
  <p>Thanks in advance,
  Angel.</p>