File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes JSF: should we use it? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSF: should we use it?" Watch "JSF: should we use it?" New topic
Author

JSF: should we use it?

Dani Mazzuca
Ranch Hand

Joined: May 21, 2003
Posts: 70
Hi Marty,
Several times I was reading that JSF doesn't compete with Struts. However, if you read some articles about it, you can discover that most of its functionality comes from Struts. OK, OK, you can render visual components in different ways, but as you said, how many people will use that feature? And at the cost of what?
Also, Web designers usually use professional visual tools like DreamWeaver MX to build its pages, so, IMHO, the custom html tags (forms, etc) created in both, Struts and JSF, are not very practical, not until web designers have a similar tool that lets them construct the pages visually, like the intent of project Rave, but this will take some time.
My impression, and I should emphasize that I was not reading a lot about JSF, so I might be unfair, is that JSF project is not going well, maybe because it has not a clear main objective. So the questions are: Should we use JSF? What for? Is it going to take off? What are your personal opinions about it? (Please, tell me I am wrong! :-))
Dani Mazzuca
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Read this
http://www-106.ibm.com/developerworks/java/library/j-integrate/?Open&ca=daw-co-news


Groovy
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61206
    
  66

Also, Web designers usually use professional visual tools like DreamWeaver MX to build its pages,

Such designers are usually building web sites as opposed to web applications. So if custom tags (Struts or home-grown) aren't important to you, you don't need to use them. If you are building a large web app that would be near impossible without them, use a tool appropriate to the job.
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Originally posted by Dani Mazzuca:

My impression, and I should emphasize that I was not reading a lot about JSF, so I might be unfair, is that JSF project is not going well, maybe because it has not a clear main objective. So the questions are: Should we use JSF? What for? Is it going to take off? What are your personal opinions about it? (Please, tell me I am wrong! :-))
Dani Mazzuca

Dani, I heard that Swing developers can easily fetch the concept of JSF... I don't whether it is just a rumor or not... As for me, I haven't tried it JSF yet... I think I am glad of the evolution of JSF, since I have ever used Swing, when I was in the university... Even more, personally I liked Swing at that time... I hope my skill on Swing can resurrect, if JSF is some kinda Swing-liked components...
Just my opinin...


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Marty Hall
Author
Ranch Hand

Joined: Jan 02, 2003
Posts: 111
Well, the advantages I see in JSF is not just in rendering plain HTML form elements the first time, it is:
  • Associating the form elements with beans so that the values of the form elements (textfield contents, button labels, etc.) can be derived automatically from the bean.
  • Associating the action with a bean so that the results of the form submission can populate a bean automatically.
  • Easily redisplaying HTML forms when they are incompletely filled in, preserving the entries that have already been filled in.


  • As to whether the JSF project is going well or not, IMHO it is too early to tell.
    Cheers-
    - Marty


    Java training and consulting
    Ko Ko Naing
    Ranch Hand

    Joined: Jun 08, 2002
    Posts: 3178
    Originally posted by Marty Hall:

    As to whether the JSF project is going well or not, IMHO it is too early to tell.
    Cheers-
    - Marty

    Do u mean JSF is not widely used in the industry yet? Since I used to be Swing-based client-server applications in the past, I am pretty excited of hearing that JSF technology is kinda Swing...
    Hope JSF project is going well in the future...
    Gregg Bolinger
    GenRocket Founder
    Ranch Hand

    Joined: Jul 11, 2001
    Posts: 15299
        
        6

    It is my understanding that JSF is far from complete. So no, it is not widely used yet.
    If you really want to see the benefit of JSF, do some projects in ASP.NET with Visual Studio.NET. I think that is basically what they are trying to achieve with JSF.


    GenRocket - Experts at Building Test Data
    Pradeep bhatt
    Ranch Hand

    Joined: Feb 27, 2002
    Posts: 8919

    Read sample chapters from
    http://www.theserverside.com/resources/JSFInActionReview.jsp
    Marty Hall
    Author
    Ranch Hand

    Joined: Jan 02, 2003
    Posts: 111
    Do u mean JSF is not widely used in the industry yet?

    Actually, I meant that JSF is not used at all in industry yet.
    The spec is not complete, and the first release of JSF is not yet out.
    Cheers-
    - Marty
    Pradeep bhatt
    Ranch Hand

    Joined: Feb 27, 2002
    Posts: 8919

    Marty,
    Do you think that it will be next major thing in J2EE web application world?
    [ November 14, 2003: Message edited by: Pradeep Bhat ]
    Kyle Brown
    author
    Ranch Hand

    Joined: Aug 10, 2001
    Posts: 3892
        
        5
    My answer is YES, JSF will be the next big thing. IBM, for one is behind it in a very big way, as are MacroMedia, Sun, and several other companies. IMHO, you ignore JSF at your peril...
    Kyle


    Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
    See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
    Dani Mazzuca
    Ranch Hand

    Joined: May 21, 2003
    Posts: 70
    Kyle,
    It is interesting to know that big companies are behind the JSF scenes, particularly, Macromedia. Could you elaborate more, with technical comments about JSF, why do you think it will be the next big thing?
    Dani Mazzuca
    Kyle Brown
    author
    Ranch Hand

    Joined: Aug 10, 2001
    Posts: 3892
        
        5
    OK, the next release of WSAD will include full support for JSF. We have this available as a limited-availability technical preview now for selected customers. I know that Macromedia is working on JSF support for a Flash renderkit. There are lots of other companies doing similar interesting work. It's from this that I'm drawing my conclusions that it is the next big thing.
    Kyle
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: JSF: should we use it?