[Solved] How to do Responsive datatable with paginator and scroll bar by using Prime faces 5.3?

If you just want it to be responsive, you can add in each: <p:column colspan=”#{expoBean.colspanGeo}” priority=”2″> <f:facet name=”header”> <p:selectBooleanButton value=”#{expoBean.showGeo}” onLabel=”-” offLabel=”+” > <p:ajax listener=”#{expoBean.showGeoChanged}” update=”dtExposure” /> </p:selectBooleanButton> <h:outputText value=” Geolocation” /> </f:facet> </p:column> Paginator and Scrollers are default, you setup this items on datatable element using the properties. 1 solved How to do Responsive … Read more

[Solved] Create a PDF file in memory

this solution, using itext, primefaces media. <p:dataTable widgetVar=”tb1″ id=”tablaFact” var=”item” selection=”#{listadoFacturasMB.selectedFactura}” selectionMode=”single” paginator=”true” rows=”20″ rowKey=”#{item.idFactura}” value=”#{listadoFacturasMB.facturaUtilList}”> <p:ajax event=”rowSelect” update=”:frm1:growl :frm1:dialog” oncomplete=”PF(‘servDialog’).show()” listener=”#{listadoFacturasMB.createPDF}”/> <f:facet name=”header”> <h:outputText value=”Listado de facturas (Cantidad: #{listadoFacturasMB.cantFact})”/> </f:facet> <p:column style=”width:10%” headerText=”Nro” sortBy=”noFactura” filterFunction=”#{utilMB.filterByName}” filterBy=”noFactura” filterMatchMode=”contains”> <h:outputText value=”#{item.noFactura}”/> </p:column> </p:dataTable> <p:dialog resizable=”false” closeOnEscape=”true” appendTo=”@(body)” modal=”true” id=”dialog” header=”Detalles de la factura” widgetVar=”servDialog” width=”1000px” height=”630px”> … Read more