File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF vs. JavaScript

 
Unnsse Khan
Ranch Hand
Posts: 511
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are the advantages of using JSF over JavaScript for developing rich client side web user interfaces?

I know that a very good UI in JavaScript takes the load off the server, but JavaScript is browser dependent (which is scary)...

Is the JSF framework difficult?

Sorry to have posted it here but I couldn't find any other section that would suit my questions more.....
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Web Frameworks forum.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33671
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unnsse,
The main advantage is that you can control everything on the server. With Javascript, you have have to think about several things:
1) Cross-browser compatibility (as you mentioned)
2) Not all browsers support javascript
3) Users can turn off javascript
4) Hackers can circumvent your validation

With JSF, everything is done on the server and is central to the business model. You can still do some things in javascript to avoid performance issues.

JSF is more than a UI, it is a whole framework. So when the page is submitted, you can go to the database or other things. It isn't any harder to learn than other frameworks. And if you are just doing simple things, you don't need to deal with all the complexity right away.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic