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

Doublespinner always blank in turkish locale on iOS devices

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 7.0.3
    • 7.0.1, 7.0.2
    • General
    • Security Level: Jimmy
    • Tested on iPad Air iOS 7.1.2

    • None

      1. Use +/- buttons to increment/decrement the bottom doublespinner

      Turkish doublespinner does not display the updated value

      2. Use +/- buttons to increment/decrement the Turkish doublespinner

      The bottom doublespinner resets to 0.0, then the value is not updated afterwards

      3. Enter a number in the Turkish doublespinner, then tab out

      Turkish doublespinner becomes blank, but the value is retained

      test.zul
      <?import org.zkoss.util.Locales ?>
      <zk xmlns:h="native">
          <zscript>
              String language = Locales.getCurrent().getDisplayLanguage();
          </zscript>
          <window apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('test.TestVM')">
              <h:table border="1" cellspacing="0" cellpadding="5">
                  <h:tr>
                      <h:th>Locale</h:th><h:th>Doublespinner</h:th>
                  </h:tr>
                  <h:tr>
                      <h:td>Turkish</h:td>
                      <h:td><doublespinner value="@bind(vm.doubleValue)" locale="tr_TR" /></h:td>
                  </h:tr>
                  <h:tr>
                      <h:td>${language}</h:td>
                      <h:td><doublespinner value="@bind(vm.doubleValue)" /></h:td>
                  </h:tr>
              </h:table>
          </window>
      </zk>
      
      TestVM.java
      package test;
      
      public class TestVM {
          private double doubleValue;
      
          public double getDoubleValue() {
              return doubleValue;
          }
      
          public void setDoubleValue(double doubleValue) {
              this.doubleValue = doubleValue;
          }
      }
      

            jumperchen jumperchen
            neillee neillee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: