Can I use facelets in a Google App Engine app?

旧时模样 提交于 2019-12-13 14:11:07

问题


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.


回答1:


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.




回答2:


I haven't tried it, but I don't imagine it would be any different from using Struts or Spring. As long as you can deploy with all the JARs you need in your WAR it should work.

The only question is whether JPA or JDO are sufficient. If the facelets require any other persistence mechanism you might have a problem.

JMS isn't available either, so features that depend on it can't work.

Isn't the first access limited? First 10,000 get in?



来源:https://stackoverflow.com/questions/732565/can-i-use-facelets-in-a-google-app-engine-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!