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

Doublebox value disappeared in de_DE mobile devices

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 6.5.8.1
    • Fix Version/s: 9.6.0
    • Component/s: Components
    • Labels:
    • Environment:

      Android Chrome (Chrome emulator is reproducible)
      iPad Safari

      Description

      Steps to Reproduce

      <zk>
      	<zscript><![CDATA[
      		Sessions.getCurrent().setAttribute("px_preferred_locale", new Locale("de","DE"));
      	]]></zscript>
      	<div>Change browser locale to Germany for this test case.</div>
      	<div>You should see the values in each input element "0,5" or "0,00...5", not "5".</div>
      	<div>
      		<doublebox id="db1" value="0.5" constraint="no negative"/>
      		<doublespinner id="db2" value="0.5" constraint="no negative"/>
      		<decimalbox id="db3" value="0.5" constraint="no negative"/>
      		<decimalbox id="db4" constraint="no negative"/>
      		<div>
      			<decimalbox id="db5" width="500px" constraint="no negative"/>
      		</div>
      	</div>
      	<zscript>
      		db4.value = new java.math.BigDecimal(0.5);
      		db5.value = new java.math.BigDecimal("5E-50");
      
      		db1.getValue();
      		db2.getValue();
      		db3.getValue();
      		db4.getValue();
      		db5.getValue();
      	</zscript>
      	<button label="reset">
      		<attribute name="onClick">
      			Sessions.getCurrent().removeAttribute("px_preferred_locale");
      		</attribute>
      	</button>
      </zk>
      
      1. Open this page in a mobile browser

      Current Result

      No value in every input component

      Expected Result

      "0,5" or "0,00...5" was filled.

      Debug Information


      Workaround


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rudyhuang rudyhuang
              Reporter:
              rudyhuang rudyhuang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: