Sunday, June 15, 2008

RIA with Java?

I was searching for a briliant Java framework to let me to create a RIA in 2 hours :).
It seems that I was really really naive :(.

I was attracted by:
- Flex
- Java Fx

Flex looks very promising. It has even an UI builder. Good. I've started the download, then I installed it.

I've spent 20 minutes to figure out how the hell I can link all those UI widges. I've started the tutorial to find out how :(. The documentation is cryptic and pretty dummy :(. Where the hell is "hello word" example. I see examples of complicated things but not a simple "how to configure and use it" example :(. This is really nasty.
I gave up :(.

Let's try the JavaFx.
There are some marketing materials which look promising. Ok. Let's search for a builder or for a plugin.
The only good plugin is for NetBeans :(. So I have to get used with a different IDE. Very good :(. Wait:) I see the light: JavaFx for Eclipse. Come on, that is a joke:(. I do preffer to use text editors instead of using that plugin.
I see there is a coming release for JavaFx. I registered to their site 3 times to get an invitation. Nothing in 1 week. Ok, it seems that JavaFx is a BIG SECRET. Ok SUN guys keep your technology for yourself. Maybe you will be the only user of the "new" JavaFx ....


I am really disapointed. Is it so difficult to find a good framework to let you to build simple CRUDs for 5 entities in less then 2 hours :(?
I expect from a RIA framework to have the following:
1. simple custom scripting language
2. simple configuration
3. simple deployment description
4. simple integration with the bussines logic
4. UI designer
5. to be able to build non-ajax/ajax like UI
6. to have the same UI code both for a web and for a desktop application :)
7. to let me code in Java

Does anybody know such framework?

9 comments:

ak said...

GWT should do the trick.

prese said...

Yes, but what about the desktop? I do not want to write the UI twice :(.

moonko said...

Yes, I know such a framework. It is Java FX. Nowadays is Java FX invitation only and we are working on Preview Release. If you take a look at Rich Green's keynote at JavaOne 2008 you can point a schedule for Java FX. The new features of Java 1.6 update 10 include "drag-able applet" which allows you to create one code for web and desktop. Please, be patient with Java FX. It hides a lot of power inside and is worth to spend time waiting for it.

AD ak: The GWT cannot be used. In case it has only AJAX style UI.

Author is Java FX Tools engineer at SUN.

moonko said...

Sorry, this is really punch to your blog: "The future is here. It's just not widely distributed yet." - William Gibson

Richard Monson-Haefel said...

You really should try Curl, which is a RIA solution that has been around for 10 years. It's very big in Japan but was invented at MIT

Curl has some great tutorials and an easy-to-use IDE that will get you up and running in very little time. Most people find Curl easier to learn than Ajax or Flex.

Here is the URL to getting started with Curl
http://www.curl.com/download/get_started.php

Here are some easy to follow tutorials (you don't even need the IDE for the one called Curl Cues)
http://developers.curl.com/community/training_center

Also. You'll find the Curl community extremely responsive - during business hours most questions are answered within an hour. We have our engineers watching the Curl forum to ensure a quick response.

Compared to your JavaFX and Flex experiences, you'll find Curl to be a pleasant surprise.

moonko said...

Sorry, Richard, but this Curl think, your company is working on, does not support desktop. Well, RIA does not stands for "Rich WEB ONLY Internet Application". The Curl failed to satisfy one UI for web and desktop.

Sebi Presecan said...

to moonko:
I hope that JavaFx will solve my dilemma but still related to Fx:
- when can we see a stable release
- is any decent UI editor for it
- are any simple tutorials available

Richard Monson-Haefel said...

@moonko

Actually Curl has excellent support for the Desktop. In fact you can develop applications for the browser or the desktop using Curl. What's more is that Curl's desktop model provides much better security and performance than something like Adobe AIR.

Curl is not limited to the browser - its a single runtime that supports in- and out-of-browser experiences on- and off-line.

Also Curl is not something we are "working on". Curl is now in its 6th version since it was first introduced in 1998. The only RIA technology that is more mature is Java applets.

moonko said...

@Sebi Presecan:
About releases and another issues around JavaFX we have http://javafx.com/. There is also possibility to register for preview release. The release plan has been announced @ Rich Green's keynote at J1 this year. Concept of UI Editor is new in JFX and there is ability to use exported UIs from i.e Illustrator as seen in J1. We had prepared a lot of tutorials and guides to easy adoption of this technology.