Maxim Solodovnik created WICKET-6988:
----------------------------------------
Summary: String.format used in JS generation leads to errors
Key: WICKET-6988
URL: https://issues.apache.org/jira/browse/WICKET-6988
Project: Wicket
Issue Type: Bug
Components: wicket-core
Affects Versions: 9.10.0
Reporter: Maxim Solodovnik
Assignee: Maxim Solodovnik
Fix For: 10.0.0, 8.14.0, 9.11.0
In case system locale is set to Arabic ({{ar-EG}} for ex.)
Numbers are being printed using Arabic symbols, which is wrong in timeouts for
ex.
here is an example:
{code}
(function(){Wicket.Timer.set('idb3.0',
function(){Wicket.Ajax.ajax({"u":"./.?4-1.0-main~container-main","c":"idb3","dep":[function(attrs){return
Wicket.BrowserInfo.collect()}]});}, ٥٠);})()
{code}
NOTE {{٥٠}} is printed instead of {{50}}
The cause is {{String.format(pattern, args...)}} which will use system default
locale
I'll try to hunt such issues one-by-one
--
This message was sent by Atlassian Jira
(v8.20.7#820007)