Java based web framework alternatives
I'm trying to pick a web framework that is Java based to start a new project and so far I'm having a bit of trouble deciding. I have been using plain GWT and I have to say that is very good, the architecture, the APIs and the docs are all very good, but I lack the knowledge to apply CSS and prettify my widgets, so I need something that comes with that included, Gwt Ext is ruled out as is not purely based in GWT, Ext Gwt is good but they drift away totally from GWT and implement everything again (data stores, events, etc) and there is also the license. I found out about Vaadin and it seems pretty good, besides it improves on the weak side of GWT (in my opinion) which is that everything is client side, pre rendered (the whole website is on the client side, even if, lets say, your cient has not yet authenticated). The only thing about Vaadin is that I don't see a lot of widespread usage, maybe is very recent, so I can't get a lot of opinions.
Any solutions proposed don't have to be based in GWT, is just that it integrates JS and JAVA in a great way, abstracting from me, a Java developer, all the JS goodness that I would need to learn in order to develop a web app.
So, basically: Java developer needs opinion on different Java based web frameworks. Requirements: no deep knowledge of CSS or JS required to use it (basic knowledge is of course, always required, but I don't want to be tinkering with the internals too much), nice, acceptable looking widgets already included, ability to use Java development tools/techniques (Eclipse, Netbeans etc).
As you can see GWT fits almost all of my requirements and that was my first choice, but now I would like to get more feedback regarding other options. Thanks in advance, teto.
Well,
In my opinion you should really invest time in CSS. The web without css is just asking for trouble. Most web frameworks will need some HTML and CSS to do the final presentation. They might abstract them away, but without understanding the underlying technology you are always going to get stuck when you need something special in your UI.
Imagine writing a UI in swing without wanting to learn the concept of LayoutManagers.
David
Grails,如果你不介意像JVM这样的Rails框架。
If you like component based approach, have a look at Apache Wicket. Regarding 3rd party JavaScript libraries, you can use whatever JS libraries that you want to. Wicket core really only uses it's own custom JS for Ajax, etc. Check out wicketstuff for a lot of ready-made integrations between popular JS libraries and Wicket. Some of them are less mature than others, but the good ones can give you inspiration for how to accomplish what you need. Another option: Wicket ExtJS Integration Module.
Personally, I prefer Stripes, an action based framework which promotes Conventions over Configuration. Again, Stripes doesn't force the use of any particular JS library so just use what you want to. You might want to read [Stripes-users] Suggestions for a good widget framework for STRIPES though.
Finally, Grails could be the joker candidate. It has AJAX support (you can use YUI, prototype, dojo), a jQuery Plugin, etc. You might want to read Which Grails Rich Client Plugin is the Best? for more inputs.
链接地址: http://www.djcxy.com/p/44056.html上一篇: 现在选择一个Java Web框架?
下一篇: 基于Java的Web框架替代品