tamaño de columnas
Usar en el <p:column>
style="width:80px"
<p:column headerText="#{app['field.date']}" style="width:80px">
<p:outputLabel value="#{jmoordbNotificationsController.showDate(item.date)}"/>
</p:column>
<p:dataTable var="item" value="#{solicitudDocenteController.solicitudDataModel}"
reflow="true">
<f:facet name="header">
"#{msg['titlelist.solicituddocente']}"
</f:facet>
<p:column style="width:16px">
<p:rowToggler />
</p:column>
<p:column headerText="#{msg['field.idsolicitud']}">
<h:outputText value="#{item.idsolicitud}" style="color: #{solicitudDocenteController.columnColor(item.estatus.idestatus)}" />
</p:column>
<p:column headerText="#{msg['field.fechapartida']}">
<h:outputText value="#{solicitudDocenteController.showDate(item.fechahorapartida)}" style="color: #{solicitudDocenteController.columnColor(item.estatus.idestatus)}" />
</p:column>
<p:column headerText="#{msg['field.horapartida']}">
<p:outputLabel value="#{solicitudDocenteController.showHour(item.fechahorapartida)}" style="color: #{solicitudDocenteController.columnColor(item.estatus.idestatus)}" />
</p:column>
<p:column headerText="#{msg['field.estatus']}">
<p:outputLabel value="#{item.estatus.idestatus}" style="color: #{solicitudDocenteController.columnColor(item.estatus.idestatus)}"/>
</p:column>
<p:column style="width:45px" >
<jmoordbjsf:commandbuttonviewdatatable
renderedEdit="#{p:ifGranted('DOCENTE')}"
controller="#{solicitudDocenteController}"
url="/pages/solicituddocente/view.xhtml"
item="#{item}"
/>
</p:column>
<p:rowExpansion>
<b:panelGrid id="panel" colSpans="2,10" size="sm" rendered="#{p:ifGranted('DOCENTE')}">
<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.facultad']}" />
<p:repeat value="#{item.facultad}" var="car">
<p:outputLabel value="#{car.descripcion}"/>
</p:repeat>
<p:outputLabel value="#{msg['field.carrera']}" />
<p:repeat value="#{item.carrera}" var="car">
<p:outputLabel value="#{car.descripcion}"/>
</p:repeat>
<p:outputLabel value="#{msg['field.numerogrupos']}" />
<p:outputLabel value="#{item.numerogrupo}" />
<p:outputLabel value="#{msg['field.numerodevehiculos']}" />
<p:outputLabel value="#{item.numerodevehiculos}" />
<p:outputLabel value="#{msg['field.pasajeros']}" >
<i class="pi pi-users"></i>
</p:outputLabel>
<p:outputLabel value="#{item.pasajeros}" />
<p:outputLabel value="#{msg['field.lugarpartida']}" />
<p:outputLabel value="#{solicitudDocenteController.solicitud.lugarpartida}" />
<p:outputLabel value="#{msg['field.lugarllegada']}" >
<i class="pi pi-home"></i>
</p:outputLabel>
<p:outputLabel value="#{item.lugarllegada}" />
<p:outputLabel value="#{msg['field.estatus']}" />
<p:outputLabel value="#{item.estatus.idestatus}" style="color: #{solicitudDocenteController.columnColor(item.estatus.idestatus)}" />
</b:panelGrid>
</p:rowExpansion>
</p:dataTable>
</b:panel>
Last updated
Was this helpful?