Eclipse, Google App Engine, JSF 2.0 and XHTML Tags and Beans Completion
For the instruction how JSF 2.0 can work with GAE you can read this article
http://whileitcompiles.com/programming/java/getting-started-with-google-app-engine-and-jsf/
and test the Source of the Demo App,
Note: Fix WebConfiguration.java unused Imports and Package (com.sun.faces.config)
BE CAREFULLY, MAKE A BACKUP OF PROJECT BEFORE CHANGE THIS SETTINGS
I’ve found a problem not yet fixed with Data Nucleus Enhancer (See the NOTE)
I’m using Eclipse IDE for Java EE Developers SR1 wich include XHTML\Facelet Support
1) Create a Web Application Project
2) Add the a Facets to the Project (I’ve selected Java Server Faces v2.0 Project)
3) Now Eclipse crate a new WebContent Folder (but we already have war folder for our web content)
I’ve deleted it.
4) Close Ecipse (or Close the Project) and Manually edit 2 files under .settings folder
Change <classpathentry kind="src" path="war"/> into .jsdtscope file
Change <wb-resource deploy-path="/" source-path="/war"/> into org.eclipse.wst.common.component file
5) Start Eclipse (or Open the Project) and try to your faces-config,xml or XHTML JSF 2.0 File
NOTE: This project configuration cause a problem with Data Nucleus Enchancer. With this settings it doesn’t Enhance Class
If you want Enhancer work simply change Deployment Folder like this, but JSF BackBean completion will not work (only JSF tags completion work)
Commenti