JSF vs Flex

I want to set up a GUI and use AJAX as easy as possible. Taking adequate skill in both JSF and Flex, but not overly skilled in AJAX / javascript and assuming Java is the language for the application, and using DB is a good choice, or both have an equal set of pros / cons?

+1


a source to share


3 answers


Try using Richfaces. As the RichFaces library will provide out-of-the-box AJAX compliant JSF components. You can use them in your JSF application.

RichFaces is a rich JSF component library and extended framework for easily integrating AJAX capabilities into business application development. RichFaces components are ready to use out-of-the-box applications, so developers can immediately save time by taking advantage of the components to create web applications that dramatically improve the user experience more quickly and reliably. RichFaces also includes strong skinning support for JSF applications. RichFaces also takes full advantage of the JSF framework, including lifecycle, validation and transformation capabilities, and static and dynamic resource management.



http://www.jboss.org/jbossrichfaces/

0


a source


... and the pros of Flex:

  • SWF files built with the Flex Framework run in the Flash Player JIT, which is 100x faster than a JS browser unless you have a JS compatible browser that uses SquirrelFish, for example. Thus, user performance can vary significantly, whereas Flash Player performs at the same performance across all browsers, on all platforms.
  • Flex Framework is open source, so you can customize it to your heart's content. And since it works on a Flash player, it works the same everywhere. In contrast to the AJAX framework, where you usually have to be very proficient in browser compatibility coding in order to customize it.
  • Flex tools are also free as the Flex SDK is open source.


Having said that, you can AJAX your desktop apps using Adobe AIR, without using Flex or ActionScript if you like.

+1


a source


How to make HTTP requests with Flex: http://www.adobe.com/devnet/flex/quickstart/httpservice/

AJAX using JQuery (one of the many JS frameworks): http://docs.jquery.com/Ajax

Both of them are pretty simple once you play with them a little. You provide a URL and callback function to read the text response after the download is complete. Assuming you are familiar with the pros of Flex, the pros of JS are:

  • This does not require a browser plugin
  • You are not weighing the page with the Flex framework.
  • You will probably find more developers in the market who are familiar with it because the development tools are free and the code is usually exposed to anyone who wants to learn from it.
0


a source







All Articles