This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60766
    
  65

Moving to the Web Frameworks forum.


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

Joined: May 26, 2003
Posts: 30076
    
149

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
 
 
subject: JSF vs. JavaScript
 
Similar Threads
How to use javascript in JSF
Button action depending on checkbox selection.
Using javascript with JSF
checkall boxes from managebean jsf
window focus