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

WrongValueException when deleting value in doublespinner

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.5.1
    • Fix Version/s: 6.5.2
    • Component/s: Components
    • Labels:

      Description

      When deleting a value previously entered in doublespinner, Doublespinner.getTargetValue() throws WrongValueException.
      Guess null values should be accepted.

      public class DoubleSpinnerVM {
      	private Double doubleValue;
      
      	public Double getDoubleValue() {
      		return doubleValue;
      	}
      
      	public void setDoubleValue(Double doubleValue) {
      		this.doubleValue = doubleValue;
      	}
      }
      
      <window apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('DoubleSpinnerVM')">
      	<doublespinner value="@bind(vm.doubleValue)" />
      </window>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              benedetti benedetti
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: