I know I can call isc.version to determine the SmartClient version and this is also the version that is shown in the Developers Console. Is there another way to show the SmartGWT version without having to explicitly call Version.getVersion() in my Java code, but from the browser.
Announcement
Collapse
No announcement yet.
X
-
Code:$entry(@com.smartgwt.client.Version::getVersion());
But that also returns syntax error.Last edited by bwilkins30; 3 Apr 2013, 10:36.
Comment
-
Originally posted by bwilkins30 View PostThanks for the information. I tried that, but Firefox says "Syntax error" when I do:
Code:$entry(@com.smartgwt.client.Version::getVersion());
But that also returns syntax error.
Code:public static native void exportStaticMethod() /*-{ $wnd.getSgwtVersion = $entry(@com.smartgwt.client.Version::getVersion()()); }-*/;
Comment
-
Originally posted by sjivan View PostThat's because there is a syntax error. You're missing a set of parens. Refer to the JSNI syntax in the GWT docs.
Code:public static native void exportStaticMethod() /*-{ $wnd.getSgwtVersion = $entry(@com.smartgwt.client.Version::getVersion()()); }-*/;
Last edited by bwilkins30; 3 Apr 2013, 11:05.
Comment
-
I'm sorry, you had the right syntax earlier.
Code:public static native void exportStaticMethod() /*-{ $wnd.getSgwtVersion = $entry(@com.smartgwt.client.Version::getVersion()); }-*/;
Comment
-
Originally posted by sjivan View PostI'm sorry, you had the right syntax earlier.
Code:public static native void exportStaticMethod() /*-{ $wnd.getSgwtVersion = $entry(@com.smartgwt.client.Version::getVersion()); }-*/;
Comment
-
Originally posted by Isomorphic View PostWhat is the point of all this?
Do you suspect you've deployed an application where you've somehow mixed up the SmartGWT and SmartClient versions?
I could grepjar the smartgwt.jar but they want to see it in the GUI if possible.
Comment
Comment