• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JavaFX & JSF

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
author
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, thanks again for your reply!
 
reply
    Bookmark Topic Watch Topic
  • New Topic