Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Uses of JSF  RSS feed

 
Anurag Narayan
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to JSF and to be honest am not able to understand the use of JSF.From my understanding JSF is applied in forms and is used to validate/manipulate the data without making a trip to the server.Well, we can do this using javascript also?So what is the big deal?
I surely am missing some part of the picture;besides this what else are the uses of JSF?
Thanks,
Anurag
 
Marimuthu Madasamy
Ranch Hand
Posts: 72
Java Monad Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From my understanding JSF is applied in forms and is used to validate/manipulate the data without making a trip to the server.


Wrong!! Actually JSF kicks in the server side only.
 
Himanshu Gupta
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anurag it will be not nice to compare JSF with javaScript.
JSF provides a component based framework where you code your page in terms of component. You use these already present component and sets their properties according to you need. Now this is far better then writing your javaScript code.

Second when you come to the real Enterprise Application Development the complexity rises and it becomes difficult to control the amount of code and logic going here and there. Like you said to use JavaScript. If you do so then assume that after some years you leave the job and someone else is entitled to do it. Now he has to read all the code and has to search that what logic goes where as your logic will be distributed in javascript and in server side also.
So using JSF eliminates this problem too.

There are many more + points to be described but it will be better for you to explore them while you learn them.
[ October 15, 2008: Message edited by: Himanshu Gupta ]
 
Yves Zoundi
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF is a server side Web component based framework and JavaScript is ???. You cannot compare them at all, unless you're thinking in terms of "fat clients", desktop class applications "oh yeah I bet we can do it in Javascript...".
 
Tim Holloway
Bartender
Posts: 18705
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, I consider JSF PLUS JavaScript to be one of the best developments since the Web went graphical.

Better yet, JSF + a JSF/Javascript package like Richfaces so you can get the immediacy of AJAX without all the tedious grunt work.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!