We have a project that is web-based, but needs to have significant access to the user's filesystem. HTML doesn't (yet) allow us enough access, and since we are primarily a Grails shop, having the file access code as an applet makes far more sense than having it be Flash code.
We've dabbled a little bit with Griffon (a previous prototype for this project was a 100% Griffon Webstart app), and love the structure and "boilerplate removal" that Griffon gives to applets. The issue we keep running into, however, is connecting the Html / JavaScript UI to the Griffon applet that actually does all of the work.
We found James Williams' excellent example of calling JavaScript functions from a Griffon app, but haven't been able to find an example of the reverse: calling Griffon functions from the JavaScript side.
The primary issue is that we want to have the Griffon app be "headless" (or as close as we can get), since all of the UI will be handled by JavaScript and HTML. This means that we can't use UI events triggered from within the Griffon app, the way that James does in his example.
Does anyone have an example of JavaScript interacting with a Griffon applet that we could learn from? Or any advice on how to surface things from within a Griffon applet to JavaScript?