aspose file tools*
The moose likes Struts and the fly likes JSF vs. JavaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "JSF vs. JavaScript" Watch "JSF vs. JavaScript" New topic
Author

JSF vs. JavaScript

Unnsse Khan
Ranch Hand

Joined: Nov 12, 2001
Posts: 511
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

Joined: Jan 10, 2002
Posts: 61654
    
  67

Moving to the Web Frameworks forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30938
    
158

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF vs. JavaScript