作者:李小白无悔 | 来源:互联网 | 2023-08-13 18:01
IsawsomeJSFprojectsdevelopedbymycolleguesandtheseprojectsseemedtomeveryslow.Doesan
I saw some JSF projects developed by my collegues and these projects seemed to me very slow. Does anybody have the same opinion?
我看到我的同事开发的一些JSF项目,这些项目在我看来非常慢。有没有人有相同的意见?
I'm currently using jsp+jstl and jQuery for "rich" client.
我目前正在为“富”客户端使用jsp + jstl和jQuery。
I wonder what advantages and disadvantages have modern frameworks (jsf, wicket, tapestry..) over old plain jsp.
我想知道现代框架(jsf,wicket,tapestry ......)优于旧普通jsp的优点和缺点。
It would be great if people who used all these technologies had answered.
如果使用所有这些技术的人都能回答,那就太棒了。
It's also interesting for me which most exciting features made you to leave jsp and use "massive" framework (I mean, for example AOP in Spring or something else whatever you can notice).
这对我来说也很有趣,最令人兴奋的功能让你离开jsp并使用“大规模”框架(我的意思是,例如Spring中的AOP或其他任何你能注意到的东西)。
Thanks for all comments.
感谢所有评论。
5 个解决方案
I've used CGI, PHP, JSP, Struts, Spring MVC (1.2), Bea workshop, JSF, JBoss Seam, Spring MVC (2.5) and Wicket (in that order). I've noticed a jump in both productivity and quality for each new technology I've worked on. It just works better, It feels better. I prefer Wicket (with a twist of spring, quartz, etc.) over all of the others. I can honestly say I saw the light, and I don't want to go back to a darker -- or lighter ;) -- side.
我使用过CGI,PHP,JSP,Struts,Spring MVC(1.2),Bea workshop,JSF,JBoss Seam,Spring MVC(2.5)和Wicket(按顺序)。我注意到我所研究的每项新技术的生产力和质量都有所提高。它效果更好,感觉更好。我比其他所有人更喜欢Wicket(有弹簧,石英等)。老实说,我看到了光,我不想再回到更黑暗 - 或更轻的; - 一边。
There is a lot to say about Wicket.
关于Wicket有很多话要说。
- Conversational support (or tab-enabling) comes by default, you do not worry about "open in a new tab" and "back" button problems ever again.
默认情况下会话支持(或启用标签),您不必再担心“在新选项卡中打开”和“返回”按钮问题。
- It is component-based, so you can re-use code ala swing.
它是基于组件的,因此您可以重新使用代码ala swing。
- Leverages a lot of the standard Java, like the type safety wonders.
利用许多标准Java,如类型安全奇迹。
- Supports advanced security features like url encryption.
支持网址加密等高级安全功能。
- Clusterizable applications by default.
默认情况下可集群化的应用
- And, most important, it is fun to use.
而且,最重要的是,使用起来很有趣。
There is a lot to improve for JSP and JSF.
JSP和JSF有很多需要改进的地方。
- The one thing that bothers me the most is the "EL" nonsense, for I believe it breaks the nice java type safety and strength.
困扰我的一件事是“EL”废话,因为我相信它打破了漂亮的java类型的安全性和强度。
- Both need tooling support for high productivity.
两者都需要工具支持以实现高生产率。
- You need another framework on top of both of them to really solve the problems (as seen with seam framework, which makes JSF usable).
你需要在它们之上的另一个框架才能真正解决问题(如使用seam框架看到的那样,这使得JSF可用)。
- The error handling is very tricky and the exceptions are not straitforward helpful.
错误处理非常棘手,例外情况并非有用。
- It is difficult to make reusable components on both frameworks and doesn't support a proper model for separation of concerns.
很难在两个框架上制作可重用的组件,并且不支持用于分离关注点的适当模型。
- ... and, most important, a long etc of minor pains, like this, or this.
...而且,最重要的是,很长一段时间的轻微痛苦,像这样或者这样。