Glad to hear this is now working for you. We do quite a bit of work with
Java (and I'm actively updated our codebase to connect to new RESTful
services), so it's in the forefront of my mind.
If you decide to do any work with XUI, let me know. There's a bunch of
sample code up on adepters.org, but one pretty handy snippet we use to
instantiate java classes is to have a little javascript file (eg:
loadXui.js) in your custom\init folder. For some reason, it only works if
the command prompt is available (otherwise you get a java exception), but
here's the syntax we use to load at startup:
NOTE: This probably require Rhino Javascript to be default, since it tries
to load Packages.*
/**
* This function loads the initial XUI.
* ApplicationLoad event is used because first run will
* not have a valid document (editinit) and scripts in
* init are called before the window is fully available.
*/
function handleEvent(e) {
if (e.getType().equals("ApplicationLoad")) {
Packages.com.mcg.arbortext.LogUtil.getInstance();
Packages.com.mcg.arbortext.xui.XUIToolManager.loadXUI();
}
}
var o = { handleEvent: handleEvent };
var listener = Packages.org.w3c.dom.events.EventListener(o);
Application.addEventListener("ApplicationLoad", listener, true);