Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Speed of JSF

 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic