primefaces datatable rowedit not updating cell element

前端 未结 5 582
-上瘾入骨i
-上瘾入骨i 2021-01-02 13:21

I have a datatable with rowedit. One column of my table is a cell with a listbox in, the items of the listbox are dynamically retrieved (depending on the value in another c

5条回答
  •  礼貌的吻别
    2021-01-02 13:52

    I have faced with the same issue. What you can do is the following:

    Place a logger object under your update method, (or you can simply write a system.out.println) to check if your method is accessed from jsf page. If so, write you action there.

    For me, I have checked if my method is accessed. And after I saw,my row records still didn't get updated. What I have done is to create a new object of desired-row under the method, and copy the content of row values to my new object via getters/setters. And then I could update my row. This way works for me.

提交回复
热议问题