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

Speed of JSF

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

So I started reading about JSF and learning it. It seems really cool to me, I think it is a bit easier than Struts. Especially with IDE tools like Creator, as long as it runs at a decent speed.

Anyway, since all the validators, convertors, JavaBeans, Page Beans, SessionBeans and ApplicationBeans are run on the server side. What affect does this have on the performance of the application. How about when a bunch of information is stored in the SessionBeans. I think the term SessionBeans should have been renamed to not get them confused with EJB Session Beans.

Also, I am reading The Sun book on Creator, and it seems that they put all the style format with each individual UI component, rather than a way to use CSS Stylesheets. Is it just the book, or is there an easy way to use CSS Stylesheets instead, to seperate that from the UI and Code?

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

First I'll say don't spend too much time on Creator. I'll get some flak for that I am sure. And I don't mean for this to turn into a tool flame war. But as far as I know, Creator only supports D&D of components to page for Sun's RI which is pretty piss poor. Yes, you can use other Implementations like MyFaces but you don't get the D&D support and isn't that the whole point in using Creator? The last time I looked into this components by 3rd party vendors needed to be implemented in a Creator specific way for Creator to be able to support them internally. At the time I think MyFaces was just starting to convert their component implementations. But I am not 100% for sure on this.

Ok, that aside, I don't know specifics about performance. But I do know there is a lot of stuff going on and there is a ton of stuff being sent back and forth on the request. Like entire pages of components. So yes, JSF will probably be slower just from common sense. However, I'd suspect that there are other bottlenecks that are going to slow down the app so that the JSF performance issues are fairly negligable.

I'm interested to hear what other more knowledgable people have to say on this subject.


GenRocket - Experts at Building Test Data
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Oh yea, CSS. I use external stylesheets and use the styleClass attribute on the component in the JSP to tell it what style to use for said component.
George Stoianov
Ranch Hand

Joined: Jan 15, 2006
Posts: 94

Also, I am reading The Sun book on Creator, and it seems that they put all the style format with each individual UI component, rather than a way to use CSS Stylesheets. Is it just the book, or is there an easy way to use CSS Stylesheets instead, to seperate that from the UI and Code?


If are you reading the Java Studio Creator Field Guide (http://developers.sun.com/prodtech/javatools/jscreator/learning/bookshelf/index.html) you will see in Chapter 7 - Web Page Design that Creator 2 actually has a CSS editor which is pretty nifty too.

One thing that I find anoying is the missing links or problems with some of the object links from say a session bean to a component, and of course since it is not open source any sort of plug-ins will be lacking or hard to put in, but it has its place as a tool. It rings a Dreamweaver, MS Access type of cord to me which is not bad in many circumstance in my job as people have ridiculously high expectation for turn around times.

regards,
george
[ April 10, 2006: Message edited by: George Stoianov ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Speed of JSF