Static Fields and Methods

From Documentation


Static Fields and Methods


Since 8.0.0

With import directive, you can reference a static field or a static method of a class. So now you can call a tag library method without declaring it.

<?import org.zkoss.xel.fn.* ?>
...
${CommonFns.formatNumber(12345, '$ ###,###,###.00', null)}
...
${Math.sqrt(16)}

Version History

Last Update : 2021/05/27



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