|
Replies:
9
-
Last Post:
Mar 19, 2008 1:52 AM
by: michaeljharper
|
Threads:
[
Previous
|
Next
]
|
|
|
|
|
|
Issues encountered with JavaFX Compiler
Posted:
Mar 16, 2008 9:50 PM
|
|
|
Hi,
We are undertaking a new project and I have been looking at JavaFX and Adobe Flex as candidates for RIA. I spent quite a lot of time looking at the javafx compiler and here are some the issues I came across.
The example applet on this site from complied code didn't work with the bind operator - the compiler I downloaded refused to compile it. In the end I took the keyword bind out and it allowed it.
Also the mechanisms for operations didn't work - again the compiler objected to the syntax, 'sorry couldn't understand ------ ' etc. To date I haven't got this working.
So two things really. a) it's fairly hard to develop confidence that we are going in the right direction if examples and the compiler are incompatible. It's only because I don't like to be beaten that I've found my way around some issues - sadly not others. b) I just don't know what the status of the compiler and for that matter javafx is at which is why I began to look at Adobe Flex.
The project I am looking to use either Flex or JavaFX in can wait for full commercial safe systems for 6 - 9 months, I would rather use JavaFX because the language appears extremely powerful, but I need some assurance that I'm going down the right path.
Any chance someone could answer the reasons why the compiled applet code didn't work with the recommended compiler download, and where the compiler is right now and where it's going to be in about 6 to 9 months.
Thanks very much
Mike
|
|
|
|
|
|
|
Re: Issues encountered with JavaFX Compiler
Posted:
Mar 17, 2008 3:13 AM
in response to: michaeljharper
|
|
|
Hi Mike,
use function keyword instead of operation. I would appreciate if the compiler team could give us regular updates each two weeks or so on new syntax. I have a problem with this: Cell.onMouseEntered = function(e) { red = [1.00.. 0.00 step 0.05] dur 5000 linear; };
It seems like the hack with dur keyword doesn't work for animation anymore.
Jiri
|
|
|
|
|
|
|
|
Re: Issues encountered with JavaFX Compiler
Posted:
Mar 17, 2008 7:29 AM
in response to: jim_weaver
|
|
|
Thanks again Jim  I know dur's not a part of compiled JFX, but I couldn't find the right replacement for that.
|
|
|
|
|
|
|
|
Re: Issues encountered with JavaFX Compiler
Posted:
Mar 17, 2008 10:40 AM
in response to: goddard
|
|
|
Jiri,
Did the links help you find the replacement for dur, or would you like further explanation?
Thanks, Jim Weaver
|
|
|
|
|
|
|
|
Re2: Issues encountered with JavaFX Compiler
Posted:
Mar 17, 2008 6:26 AM
in response to: michaeljharper
|
|
|
Michael,
Addressing your second question (please see my response to your first one in a separate reply). Based upon the solid and accelerating progress being made by the JavaFX Script compiler team, and the status of the other piece of the rich-client Java puzzle (Java SE 6 u10), I have a high comfort level that a stable 1.0 version will be available in the timeframe in which you need it.
In my opinion, compiled JavaFX Script in its current state will support the prototyping and design activities associated with an RIA project quite nicely.
Join the fray! (frayed?)  Jim Weaver "Helping you become a JavaFXpert" weblog: http://JavaFXpert.com
|
|
|
|
|
|
|
|
Re: Re2: Issues encountered with JavaFX Compiler
Posted:
Mar 17, 2008 9:53 PM
in response to: jim_weaver
|
|
|
Thanks Jim,
Thats more reassuring. Im still a little lost when it comes to comparing Java FX that you can run in interpeter mode against the complied version. I will look for the specification for the language grammer hopefully this will clarify things a little.
|
|
|
|
|
|
|
|
Re: Re2: Issues encountered with JavaFX Compiler
Posted:
Mar 19, 2008 1:52 AM
in response to: jim_weaver
|
|
|
Thanks again, this was very helpful and I'm starting to get the shape of a prototype in place (embedded in a portlet on jboss)
I have one problem I can't find an answer for but I'll post that separately.
Mike
|
|
|
|
|