Search code examples
primefacesjsf-2handsontableprimefaces-extensions

pe:sheet not triggering change for numeric values from null to 0


While using the PrimeFaces Sheet component I realized that for cells of type numeric change event is not triggered and also values are not submitted to server side when changing an empty(null) cell to the value 0.

For everything else it works as it is supposed to. Even if there already is value and then changing it to 0 also works ok. UI events are triggered correctly, I have hooks on the Handsontable component to onBeforeChange and onAfterChange and on the UI side the changes are registered. I tried two approaches:

  • One was without ajax change events, just submitting the form. In this case the values which are 0 are not submitted to the server side and they disappear from the UI as well.
  • Second thing I tried is to have a ajax change event, which was not triggered in the case mentioned above.

Solution

  • This was already reported against PFE 7.0 and fixed in 7.0.1.

    See: https://github.com/primefaces-extensions/primefaces-extensions.github.com/issues/681