I have a table in primefaces that works as a calendar, I currently put in 31 columns, but the table must show the days according to the month, so how can you do it not to show all the 31 days, if it is February that only show the 28 days for example and so with each month and that is not much code for how I am putting all the columns, is there a function?
this is my vision code
<p:dataTable var="datos" styleClass="columns" editable="true" editMode="cell" style="max-width:3000px;max-height:770px;" value="#{PersonaProbatorioComponent.datosPersonales}">
<p:column rowspan="3" headerText="RFC" styleClass="columns" style="width:110px;height:50px" >
<h:outputText value="#{datos.nombre}" />
</p:column>
<p:column rowspan="3" headerText="NOMBRE" styleClass="columns" style="width:110px;">
<h:outputText value="#{datos.apellido}" />
</p:column>
<p:column rowspan="3" headerText="CLAVE" style="width:110px" styleClass="columns">
<p:outputLabel value="123"/>
</p:column>
<p:column rowspan="3" headerText="1" style="width:10px" styleClass="columns">
</p:column>
<p:column rowspan="3" headerText="2" style="width:10px" styleClass="columns">
</p:column>
<p:column rowspan="3" headerText="3" style="width:10px" styleClass="columns">
</p:column>
<p:column rowspan="3" headerText="4" style="width:10px" styleClass="columns">
</p:column>
<p:column rowspan="3" headerText="5" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="6" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="7" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="8" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="9" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="10" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="11" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="12" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="13" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="14" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="15" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="16" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="17" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="18" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="19" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="20" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="21" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="22" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="23" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="24" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="25" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column rowspan="3" headerText="26" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="27" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="28" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="29" rowspan="3" style="width:10px" styleClass="columns" >
</p:column>
<p:column headerText="30" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
<p:column headerText="31" rowspan="3" style="width:10px" styleClass="columns">
</p:column>
</p:dataTable>