p:columnGroup in p:pataTable does not show headerText

961 views Asked by At

I try to make a data table group of PrimeFaces. All goes well. The number of columns is correct, colspan= "#{asignaturaController.nombrePruebasEscritas1.size()} but the name of each test does not show and the object pointed to is full. I tried everything. Anyone have any idea?

This is my result.

enter image description here

but I need the names of "Pruebas" over the "pruebas"

<h:form id="form-tablapruebasescritas1"
        renderer="#{asignaturaController.nombrePruebasEscritas1.size() != 0}">

    <p:dataTable var="player"
                 value="#{asignaturaController.alumnos}"
                 id="tablapruebasescritas1"
                 style="margin-top:40px"
                 sortOrder="ascending">

        <f:facet name="header">
            1ยช Evaluacion
        </f:facet>

        <p:columnGroup type="header">
            <p:row>
                <p:column rowspan="2" headerText="Alumno" />
                <p:column  colspan="#{asignaturaController.nombrePruebasEscritas1.size()}"
                           headerText="Pruebas" />
            </p:row>

            <p:row>
                <ui:repeat value="#{asignaturaController.nombrePruebasEscritas1}"
                           var="yea">
                    <p:column headerText="#{yea}" />
                </ui:repeat>
            </p:row>
        </p:columnGroup>

        <p:column>
            <h:outputText value="#{player.nombre}" />
        </p:column>
        <p:columns value="#{asignaturaController.nombrePruebasEscritas1}"
                   var="year">
            <h:outputText value="#{player.getNotaParaTabla(year)}" />
        </p:columns>
    </p:dataTable>
</h:form>
0

There are 0 answers