Save cell once value (selectOneMenu) is chosen? (Dynamic table with editMode = cell)

UI Components for JSF
Post Reply
cmastrantono
Posts: 11
Joined: 23 Apr 2012, 17:58

19 Sep 2017, 23:18

Hi,

Does anyone know what to do so that after selecting an option in the h:selectOneMenu the cell is saved automatically? Right now after selecting a value the combo remains active so you can change the value again. I want that value to be saved automatically once the users picks an option. Tried with onchange="$('body').click();" but cellEdit event is fired twice and table is not behaving properly.

Has anyone ever dealt with this before?

Thanks in advance.
Cristian.

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

20 Sep 2017, 03:00

Tried with ajax? And please always try to create a 'mcve' (http://stackoverflow.com/help/mcve) and see also https://stackoverflow.com/tags/jsf/info

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 49 guests