我可以在Google App Engine应用程序中使用facelets吗? [英] Can I use facelets in a Google App Engine app?

查看:127
本文介绍了我可以在Google App Engine应用程序中使用facelets吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想多做一些facelets的学习。既然Java是受支持的Google应用程序引擎语言,那么facelets实现中是否有任何内容会阻止在App Engine上使用?



编辑:此页面在google 现在有一个关于App Engine的各种框架及其状态列表。

解决方案

JSF的1.2版本不工作 - 因为默认情况下它会尝试产生线程。这在GAE中是不允许的。

这已在最新版本的JSF 1.2(build 13)以及2.0 Beta 2版本中修复 - 您可以下载最新版本: http://javaserverfaces.java.net/



您需要将一个上下文参数添加到您的web.xml中:



com.sun.faces.enableMultiThreadedStartup默认为true。在部署到GAE时,此
选项必须设置为false。


I would like to do some more learning of facelets. Now that Java is a supported Google app engine language, is there anything in the facelets implementation that would prevent use on App Engine?

Edit: This page at google now has a list of various frameworks and their status in regards to App Engine.

解决方案

The 1.2 version of JSF was not working - because by default it would try to spawn threads. That's not allowed in GAE.

This is fixed in the latest version of JSF 1.2 (build 13), as well as the 2.0 Beta 2 release - and you can download the latest versions from here: http://javaserverfaces.java.net/

You need to add the a context parameter to your web.xml:

com.sun.faces.enableMultiThreadedStartup which defaults to true. This option must be set to false when deploying to GAE.

这篇关于我可以在Google App Engine应用程序中使用facelets吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆