Object new2(Object cls, Object arg1, Object arg2);

i.e.,

org.zkoss.xel.fn.CommonFns

Instantiates the given class with two arguments. It assumes the given class has a proper constructor.

Parameters

  • cls - the class. It could be an instance of either String or Class.
  • arg1 - the first argument to be passed to the constructor.
  • arg2 - the second argument to be passed to the constructor.