• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaFX & JSF

 
Anne Buit
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Anne Buit
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, thanks again for your reply!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic