aspose file tools*
The moose likes JavaFX and the fly likes JavaFX & JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "JavaFX & JSF" Watch "JavaFX & JSF" New topic
Author

JavaFX & JSF

Anne Buit
Greenhorn

Joined: Feb 21, 2009
Posts: 5
Hello Eric J. Bruno, Jim Connors & Jim Clarke,

As far as I know, JavaFX is a technology to develop RIA's, just like JSF. Could JavaFX compliment existing JSF applications?

If so, can JavaFX be integrated into the JSF lifecycle, or would the both of them run as two serperate programs within an application?

If not, are both technologies rivals of eachother in the world of RIA technologies?
Jim Clarke
author
Ranch Hand

Joined: Jun 15, 2009
Posts: 49
JavaFX actually executes on the client and provides all the richness that implies. Animation, audio, sound, etc.

JSF is a little more static being served up from the server with a combination of HTML and JavaScript as it
is translated.

There is the capability for JavaScript code to call into a JavaFX applet, and vice versa.

So I would say you could have both approaches, JSF and JavaFX complimenting each other.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15290
    
    6

I'd argue that JSF is a bit too view centric to really compliment JavaFX in a desired way. You really just want XML/JSON coming from a web service (RESTful or otherwise) to deliver content to your JavaFX application and so much of JSF is rendering a view as HTML/JavaScript. Just my 2 cents.


GenRocket - Experts at Building Test Data
Anne Buit
Greenhorn

Joined: Feb 21, 2009
Posts: 5
Thank you for your answers!

Does this mean that JavaFX is basically a client-sided user interface framework, with no real client-to-server interactions integrated in this framework?

(i.e. it would be used to support a rich user interface, not to support the logic behind it)
Jim Clarke
author
Ranch Hand

Joined: Jun 15, 2009
Posts: 49
No, there is built in support for RESTful services based on JSON, XML, RSS and ATOM feeds.
If you are using other interfaces like SOAP, it is easy enough to include a java library to support that.

You can also write logic to support the presentation. What it basically comes down to is what functionality
do you want on the client side vs. the server side. JavaFX can support it.
Anne Buit
Greenhorn

Joined: Feb 21, 2009
Posts: 5
Ok, thanks again for your reply!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaFX & JSF
 
Similar Threads
JAVAfx is the same as JSF, Or JSF is a framework like Struts, which (Struts) can also used in JAVAfx
JavaFX and Linux support - ETA?
JavaFX JavaOne buzz - helping or hurting?
Sending email
Why JavaFX?