datatable

Primefaces - update datatable with commandButton doesn't work

拟墨画扇 提交于 2020-05-12 22:22:28
问题 I'm facing some problems by updating a datatable with a commandButton. This is the xhtml file: <div class="grid_16"> <h:form id="list"> <p:messages></p:messages> <p:dataTable styleClass="result-table" var="user" id="usersList" value="#{listUsersController.users}" widgetVar="userTable" paginator="true" rows="10" paginatorAlwaysVisible="false"> <f:facet name="header"> Listado de usuarios </f:facet> <p:column> <f:facet name="header"> <h:outputText value="#{cms['users.username']}" /> </f:facet> #

Primefaces - update datatable with commandButton doesn't work

荒凉一梦 提交于 2020-05-12 22:22:02
问题 I'm facing some problems by updating a datatable with a commandButton. This is the xhtml file: <div class="grid_16"> <h:form id="list"> <p:messages></p:messages> <p:dataTable styleClass="result-table" var="user" id="usersList" value="#{listUsersController.users}" widgetVar="userTable" paginator="true" rows="10" paginatorAlwaysVisible="false"> <f:facet name="header"> Listado de usuarios </f:facet> <p:column> <f:facet name="header"> <h:outputText value="#{cms['users.username']}" /> </f:facet> #

c# Pass data from Data table into another form

戏子无情 提交于 2020-05-09 15:10:04
问题 I am extremely new to c# so sorry if this is a newbie question. I have a form with a data grid connecting to a MySQL database. I have made it so it selects the whole row and when you double click on that row it opens a new form. What I want to do now is have some text boxes in the 2nd form filled with data from what the user selected on the previous form. This is my code so far. public partial class Form1 : Form { public Form1() { InitializeComponent(); string connectionString = "datasource=*

c# Pass data from Data table into another form

故事扮演 提交于 2020-05-09 15:08:38
问题 I am extremely new to c# so sorry if this is a newbie question. I have a form with a data grid connecting to a MySQL database. I have made it so it selects the whole row and when you double click on that row it opens a new form. What I want to do now is have some text boxes in the 2nd form filled with data from what the user selected on the previous form. This is my code so far. public partial class Form1 : Form { public Form1() { InitializeComponent(); string connectionString = "datasource=*

c# Pass data from Data table into another form

断了今生、忘了曾经 提交于 2020-05-09 15:08:12
问题 I am extremely new to c# so sorry if this is a newbie question. I have a form with a data grid connecting to a MySQL database. I have made it so it selects the whole row and when you double click on that row it opens a new form. What I want to do now is have some text boxes in the 2nd form filled with data from what the user selected on the previous form. This is my code so far. public partial class Form1 : Form { public Form1() { InitializeComponent(); string connectionString = "datasource=*

c# Pass data from Data table into another form

橙三吉。 提交于 2020-05-09 15:07:47
问题 I am extremely new to c# so sorry if this is a newbie question. I have a form with a data grid connecting to a MySQL database. I have made it so it selects the whole row and when you double click on that row it opens a new form. What I want to do now is have some text boxes in the 2nd form filled with data from what the user selected on the previous form. This is my code so far. public partial class Form1 : Form { public Form1() { InitializeComponent(); string connectionString = "datasource=*

Combining renderUI, dataTableOutput, renderDataTable, and reactive

怎甘沉沦 提交于 2020-04-30 06:28:21
问题 This is somewhat of an expansion of this post: I would like to have the DT::renderDataTable inside the renderUI and then have the output of the renderUI used in the reactive . This is what I'm doing: suppressPackageStartupMessages(library(dplyr)) suppressPackageStartupMessages(library(plotly)) suppressPackageStartupMessages(library(shiny)) #data.frames to be used in the server set.seed(1) coordinate.df <- data.frame(coordinate_id = paste0("c", 1:1000),x = rnorm(1000), y = rnorm(1000),

Vuetify Align footer columns with table columns in data table

ⅰ亾dé卋堺 提交于 2020-04-16 02:52:22
问题 I have a datatable (vuetify 2.1.12) with slot="items" and slot="footer". In the footer I wan't to display the sum of some of the columns. The "problem" is that the columns in the footer are not at all in line with the columns in the table. basically I do this in the data table: <template v-slot:item="props"> <tr> <td>{{ props.item.qty }}</td> <td>{{ props.item.qtyBoughtToday }}</td> <td>{{ props.item.shortName }}</td> </tr> </template> <template slot="footer"> <tr> <td></td> <td>{{

Adding filterBy to p:dataTable causes java.lang.NullPointerException at javax.faces.component.StateHolderSaver.<init> on postback

纵饮孤独 提交于 2020-04-13 03:50:26
问题 I'm trying to develop a datatable with lazy loading. Unfiltered and filtered records are correctly loaded from the persistence context through the use of UserService (i.e. a simple DAO). I'm 100% sure the problem is not related to the DAO being used because it has been successfully tested and deployed in other packages. The error comes out when I try to insert a filter: the collection of filtered items is correctly loaded on the page but it looks like at the end of the process something goes

Adding filterBy to p:dataTable causes java.lang.NullPointerException at javax.faces.component.StateHolderSaver.<init> on postback

六月ゝ 毕业季﹏ 提交于 2020-04-13 03:48:13
问题 I'm trying to develop a datatable with lazy loading. Unfiltered and filtered records are correctly loaded from the persistence context through the use of UserService (i.e. a simple DAO). I'm 100% sure the problem is not related to the DAO being used because it has been successfully tested and deployed in other packages. The error comes out when I try to insert a filter: the collection of filtered items is correctly loaded on the page but it looks like at the end of the process something goes