pf-datatable

how to have more than one column of checkboxes in primefaces

寵の児 提交于 2020-01-16 10:34:25
问题 I need to do a user permissions grid hopefully using a primefaces datatable. For each row: Column one is a class name, Column two is a checkbox for permission for one of two subclasses. Column three is a checkbox for permission for the other subclass. The headers of columns two and three must have the subclass title plus a checkbox, the toggles all the other checkboxes in that subclass. I think I can use two or three datatables side by side inside a scrollpanel but I'm having issues lining up

how to have more than one column of checkboxes in primefaces

左心房为你撑大大i 提交于 2020-01-16 10:31:51
问题 I need to do a user permissions grid hopefully using a primefaces datatable. For each row: Column one is a class name, Column two is a checkbox for permission for one of two subclasses. Column three is a checkbox for permission for the other subclass. The headers of columns two and three must have the subclass title plus a checkbox, the toggles all the other checkboxes in that subclass. I think I can use two or three datatables side by side inside a scrollpanel but I'm having issues lining up

How can I export numbers in the correct type using p:dataExporter?

廉价感情. 提交于 2019-12-11 08:35:52
问题 I am using PrimeFaces dataExporter for exporting my datatable to an Excel file. The problem is that numbers are exported as text. How can I export my numbers as integer and double? <p:column headerText="net_usd_sale"> <h:outputText value="#{dizgi.net_usd_sale}" /> </p:column> <p:column style="text-align: center" exportable="false"> <f:facet name="header"> <h:outputText value="Details" /> </f:facet> <h:graphicImage value="/resources/images/details.png" alt="details image" /> </p:column> </p

How to get the values entered in the field Filtered DataTable of Primefaces?

不问归期 提交于 2019-12-09 18:13:35
问题 I have a data table: <p:dataTable id="pDataTableListaRegistros" var="registro" value="#{arquivoBean.listaRegistros}" paginator="true" rows="20" filteredValue="#{arquivoBean.filteredListaRegistros}" styleClass="tabelaCentralizada"> I would like to get the values ​​entered in filter fields "Code", "Data do Registro" and "Usuário" to manipulate in a backing bean. 回答1: You can get the filter value from the datatable by Obtain a reference to the datatable from the view either by binding or walking