# tamaño de columnas

Usar en el \<p:column>&#x20;

```markup
style="width:80px"
```

```markup
  <p:column  headerText="#{app['field.date']}" style="width:80px">
                        <p:outputLabel value="#{jmoordbNotificationsController.showDate(item.date)}"/>
 </p:column>
```

```markup
<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>


```

![](/files/-LjquVDan9Z4JUVylMWr)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://avbravo-2.gitbook.io/trucosjakartaee/overview/java-server-faces/datatable/tamano-de-columnas.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
