<p:dataGrid

 <p:dataGrid var="item" value="#{solicitudDocenteController.solicitudDataModel}" columns="3" layout="grid"
                                    paginator="false" id="cars" 
                                    >

                            <f:facet name="header">
                                "#{msg['titlelist.solicituddocente']}"
                            </f:facet>

                            <p:panel header="#{item.idsolicitud}" style="text-align:center">
                                <h:panelGrid columns="2" style="width:100%">

                                    <p:outputLabel  value="#{msg['field.numeroreferencia']}">
                                        <i class="pi pi-paperclip"></i>
                                    </p:outputLabel>
                                    <p:outputLabel value="#{item.solicitudpadre}" style="color: #009900;"/>




                                    <p:outputLabel value="#{msg['field.fechapartida']}" />
                                    <p:outputLabel value="#{solicitudDocenteController.showDate(item.fechahorapartida)}"  />

                                    <p:outputLabel value="#{msg['field.horapartida']}" />
                                    <p:outputLabel value="#{solicitudDocenteController.showHour(item.fechahorapartida)}"  />


                                    <p:outputLabel value="#{msg['field.fecharegreso']}" />
                                    <p:outputLabel value="#{solicitudDocenteController.showDate(item.fechahoraregreso)}"  />

                                    <p:outputLabel value="#{msg['field.horaregreso']}" />
                                    <p:outputLabel value="#{solicitudDocenteController.showHour(item.fechahoraregreso)}"  />


                                    <p:outputLabel value="#{msg['field.objetivo']}"  />
                                    <p:outputLabel value="#{item.objetivo}" style="color: #{solicitudDocenteController.columnColor(item.estatus.idestatus)}" />
                                    <p:outputLabel value="#{msg['field.lugares']}"/>
                                    <p:outputLabel value="#{item.lugares}"  style="color: #{solicitudDocenteController.columnColor(item.estatus.idestatus)}" />
                                    <p:outputLabel  value="#{msg['field.pasajeros']}" />
                                    <p:outputLabel  value="#{item.pasajeros}"   />

                                    <p:outputLabel value="#{msg['field.estatus']}" />
                                    <p:outputLabel  value="#{item.estatus.idestatus}"  style="color: #{solicitudDocenteController.columnColor(item.estatus.idestatus)}" />


                                    <jmoordbjsf:column_view
                                        renderedEdit="#{p:ifGranted('DOCENTE')}"
                                        controller="#{solicitudDocenteController}"
                                        url="/pages/solicituddocente/view.xhtml"
                                        item="#{item}"
                                        />
                                </h:panelGrid>
                            </p:panel>

                        </p:dataGrid>

Last updated