org.zkoss.zk.ui.input.grouping.allowed"

From Documentation
m
m ((via JWB))
 
Line 6: Line 6:
  
 
  Default: <i>true</i>
 
  Default: <i>true</i>
[since 5.0.5]
+
{{versionSince|5.0.5}}
  
 
Turn on/off whether the user is allowed to key in the grouping character when entering a number. The grouping character depends on the Locale. For example, it is a comma in English, and a dot in Germany. By default, ZK will allow the user to key in the grouping characters and the grouping characters are simply ignored when the input is parsed to a number.
 
Turn on/off whether the user is allowed to key in the grouping character when entering a number. The grouping character depends on the Locale. For example, it is a comma in English, and a dot in Germany. By default, ZK will allow the user to key in the grouping characters and the grouping characters are simply ignored when the input is parsed to a number.

Latest revision as of 09:30, 14 March 2022


org.zkoss.zk.ui.input.grouping.allowed


Property:
org.zkoss.zk.ui.input.grouping.allowed
Applicable:
Dndsmalltalk-check-icon.png globally in zk.xml via <library-property>
Dndsmalltalk-check-icon.png nested in a zul file via <custom-attributes> (at page scope)
Default: true

Since 5.0.5

Turn on/off whether the user is allowed to key in the grouping character when entering a number. The grouping character depends on the Locale. For example, it is a comma in English, and a dot in Germany. By default, ZK will allow the user to key in the grouping characters and the grouping characters are simply ignored when the input is parsed to a number.

Some people still get confused whether the application considers a comma as a decimal point or not, when he is new to the application. By disabling the entering of the grouping character will help in this case.

<library-property>
	<name>org.zkoss.zk.ui.input.grouping.allowed</name>
	<value>false</value>
</library-property>

If you want to disable it only for a particular page, you could specify it in the page's attribute (note: the page must be the root page). For example,

<zk>
<custom-attributes org.zkoss.zk.ui.input.grouping.allowed="false" scope="page"/>
<doublebox/>
</zk>


Last Update : 2022/03/14

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.