本文介绍了2012年用于谷歌应用程序引擎开发的哪种Java Web框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究开发简单的java web-app来部署在GAE上,并在此过程中了解Java web开发。我不倾向于使用像Wicket和Vaadin这样基于RIA组件的框架。



我看过Play 2.0,Tapestry 5和Click,其中Play 2.0无法用于GAE(我不想在学习Play 1.0这是过去的事情)。我在使用Javascript进行客户端编程时没有问题。所以,我不考虑GWT。



我已经阅读了一些文档。 Click似乎很容易在GAE上部署。但是,Tapestry 5似乎是一个很好的学习和学习框架,并成为一个更好的软件/网络开发人员。但是,我的谷歌搜索与GAE使用Tapestry产生了页面,谈论黑客使它在GAE上工作,而不是为GAE本身提供一流的支持。

如果要让我成为更好的程序员,我不介意努力学习一个复杂的框架。有没有人有在GAE上使用Tapestry的经验?或者我应该去点击吗?

解决方案

2012年,如果您认真对待web开发,您需要同时使用服务器端和客户端框架。



以下是我推荐的内容:
$ b


  1. 服务器-side:使用可以在一个包中提供HTML生成和REST / JSON支持的功能。对于Java,自然选择是。我使用与,您可以在其中选择您选择的模板库。我推荐。


  2. 客户端-侧。既然你是java dev,我推荐GWT。这很棒。只是不要使用它的小部件或UiBinder。使用纯HTML(它在服务器上生成,正确),然后通过添加代码。还要或RequestFactory,与REST(或 SpiffyUI a>)。



I am looking at developing simple java web-app to be deployed on GAE and learn about Java web development in the process. I am not inclined to use RIA component-based frameworks like Wicket and Vaadin.

I have looked at Play 2.0, Tapestry 5 and Click, out of which Play 2.0 cannot be used on GAE (and I don't want to put efforts in learning Play 1.0 which is a thing of the past). I have no problem in using Javascript for client-side programming. So, I am not considering GWT.

I have read up some documentation. Click seems to be easy to deploy on GAE. But, Tapestry 5 seems like a good framework to study and learn and become a better software/web developer. But, my google search for using Tapestry with GAE yielded pages that talked about hacks to get it working on GAE instead of having a first-class support for GAE itself.

I do not mind putting in efforts to learn a complex framework if it is going to make me a better programmer. Does anyone have any experience with using Tapestry on GAE? Or should I just go for Click?

In 2012 if you are serious about web development you need to use both server side and client side frameworks.

Here's what I recommend:

  1. Server-side: use something that gives you both HTML generation and REST/JSON support in one package. For Java a natural choice is JAX-RS standard. I use RESTEasy with HtmlEasy, where you can choose your template lib of choice. I recommend Silken.

  2. Client-side. Since you are java dev I recommend GWT. It's awesome. Just DO NOT use it's Widgets or UiBinder. Use pure HTML (it's generated on server, right) and then add code via GwtQuery. Also avoid GWT-RPC or RequestFactory, go with REST (GETResty or SpiffyUI).

这篇关于2012年用于谷歌应用程序引擎开发的哪种Java Web框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 01:04