May 22nd, 2006, 03:05 PM
Spring rich client with an applet
I am new to understanding Spring RCP so forgive me if this question is misguided. I am writing an applet and am interested in discovering how Spring RCP might make my life easier since the general Spring framework has certainly done this in the past. I've reviewed ApplicationLauncher and LifeCycleAdvisor and from what I can tell these work only with a JFrame? Since my outer container is JApplet then I guess they're of no help?
What parts of Spring RCP can be or are intended to be useful with developing an applet? Anything that helps me manage the MVC pattern is what I am looking for.
May 23rd, 2006, 02:31 AM
It's a good point that ApplicationLauncher only can work with JFrames, we should take a look at refactoring that, although I fear it's none of the developers priority at this moment. Implementation suggestions/patches are welcome on the dev list of course.
May 25th, 2006, 05:16 AM
You can always embed your JFram inside an Applet. That way the user could choose to keep it embeded in the page or make it its own window. Why would you want an applet instead of an appl launched with web start?
May 29th, 2006, 10:33 AM
TO be honest, Spring Rich was not designed to assist in the creation of applets, although it probably can be applied to that space. It really depends on how much data management is going on within the applet and how sophisticated you want the user interaction to be. If your applet is really just a thin veneer (simple presentation like a JSP), then you should probably take a look at the other spring projects (especially webflow).
If, however, your applet is really a "rich" application, you may find pieces of the platform useful. Off hand, I'd say that the form building, data binding and validation would all be very useful in a rich applet. I haven't worked with trying to setup a remote message source (message sources are used heavily in spring rich to allow I18N support), but I think that wouldn't be too hard to setup. Just keep in mind that you'll be shipping a LOT more jar fles over to the client in order to get these benefits and that may not be a good option. As was mentioned above, you might want to consider java web start.
Jan 17th, 2007, 04:08 AM
hello, I'm pretty new to JAVA RCP... You have written something like this:
my question: how to do this??
Originally Posted by mlavwilson2