-
FEATURED COMPONENTS
First time here? Check out the FAQ!
When I call the function in label value="${c:formatNumber(each.price, null,null))}, ZK returns back an error:
The function 'c: formatNumber' specified 2 parameters, but 3 were declared
But in the commonsFns there is the next function: formatNumber(java.lang.Object number, java.lang.String pattern, java.util.Locale locale) Formats a number (Integer, BigDecimal...) into a string.
It's a bug, thank you for reporting this problem. Please find a workaround at https://tracker.zkoss.org/browse/ZK-4902
But according to your code ${c:formatNumber(each.price, null,null)}
You pass null as the 3rd parameter, you can just call with 2 parameters:
${c:formatNumber(each.price, null)}
you can also declare the method with 3 parameters as a xel method then call it.
Asked: 2021-05-19 15:53:32 +0800
Seen: 9 times
Last updated: May 26 '21
[Smalltalk] Template Examples -Locker
Custom- Session TimeOut Message [closed]
No invisible modal window in class deriving Window [closed]
Update from ZK 8.0.2.2 to 8.5.0 (with ZK-Studio)
Popout ZK Tab to Browser [closed]
SCRIPT: Permission denied in IE11 and Edge
'Problems encountered while deleting resources' for Zk-Spring-Boot project