title: PrimeFaces dataTable Composite Component Default Value
body: <p>I have the below composite component</p>
  
  <pre><code>&lt;ui:component xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:cc="http://java.sun.com/jsf/composite"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:p="http://primefaces.org/ui"&gt;
  
      &lt;cc:interface&gt;
          &lt;cc:attribute name="rows" /&gt;
          &lt;cc:attribute name="value"
              type="org.primefaces.model.LazyDataModel" /&gt;
          &lt;cc:attribute name="var" /&gt;
          &lt;cc:attribute name="id" /&gt;
          &lt;cc:attribute name="rowStyle" default="false"/&gt;
      &lt;/cc:interface&gt;
  
      &lt;cc:implementation&gt;
          &lt;p:dataTable value="#{cc.attrs.value}"
              rendered="#{not empty cc.attrs.value}" id="#{cc.attrs.id}"
              paginator="true" rows="25" 
              currentPageReportTemplate="Showing {startRecord}-{endRecord} of {totalRecords}"
              paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
              rowsPerPageTemplate="25,50,100" paginatorPosition="bottom"
              lazy="true" rowStyleClass="#{cc.attrs.rowStyle}"&gt;
               &lt;c:set target="#{component}" property="var" value="#{cc.attrs.var}"/&gt;
              &lt;cc:insertChildren /&gt;
          &lt;/p:dataTable&gt;
      &lt;/cc:implementation&gt;
  &lt;/ui:component&gt; 
  </code></pre>
  
  <p>My requirement is:
  In few cases, I will pass the value of rowStyle otherwise if the value is not passed, it should take the default value.</p>
  
  <p>I have the added the below line in my composite component </p>
  
  <pre><code>&lt;cc:attribute name="rowStyle" default="false"/&gt;
  </code></pre>
  
  <p>But it is not working. Why?</p>