I am trying to quickly learn GWT as part of a new project. I found out that GWT does not implement the Java function String.format (), so there is no printf () function. I knew that there were some implementations of printf () for Javascript, so I decided that I could insert one of them as a GWT Javascript Native Interface function. I ran into problems and decided it was better to make sure that the varargs values ββwere passed correctly. What is where everything has become ugly. Firstly, some sample code:
test("sourceString", "params1", "params2", "params3");
....
public static native void test(Object... params) ;
GWT , " JavaScript varargs Java , ". , , params.length, JavascriptException, UmbrellaException, . "typeof (params)", "function". , params, , Java.
, , :
1) GWT/JSNI, - ?
2) ?
3) printf() GWT?