Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3662

decimalbox value doesn't update after deleting zeros after comma

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 8.0.4.1
    • Fix Version/s: None
    • Component/s: Components
    • Labels:
      None

      Description

      Setter is not called after decimalbox value is changed: deleting zeros after comma. (scale does not reset)

      Use case:
      input: 123456,00 => out of focus => delete zeros after comma => out of focus => return value 12345600 (must be 123456)

        Activity

        Hide
        PhaNtoM PhaNtoM added a comment - - edited

        The bug is caused because the org.zkoss.zul.impl.InputElement service method checks for equality before notifying and org.zkoss.lang.Objects equals method uses incorrect java.math.BigDecimal.compareTo(BigDecimal) method to compare values, java.math.BigDecimal.equals(Object) should be used.
        Please fix it ASAP.

        Show
        PhaNtoM PhaNtoM added a comment - - edited The bug is caused because the org.zkoss.zul.impl.InputElement service method checks for equality before notifying and org.zkoss.lang.Objects equals method uses incorrect java.math.BigDecimal.compareTo(BigDecimal) method to compare values, java.math.BigDecimal.equals(Object) should be used. Please fix it ASAP.

          People

          • Assignee:
            Unassigned
            Reporter:
            ErikasKuvakin ErikasKuvakin
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: