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

Doublespinner always blank in turkish locale on iOS devices

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 7.0.1, 7.0.2
    • Fix Version/s: 7.0.3
    • Component/s: General
    • Security Level: Jimmy
    • Environment:

      Tested on iPad Air iOS 7.1.2

      Description

      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;
          }
      }
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: