Hi,

As you know yesterday Google enabled Java as the second language on Google App.

I registered to the test version and I want to try to run JSF…I started with Jsf 1.1 and it worked perfectly!!

I tried the JSF example that come with JBoss Tools, try it at:

http://2.latest.demetrio81280.appspot.com/pages/inputUserName.jsf

If you want to try it, these are the simple steps:

  1. Register to Google App (they says just 10000 ppl initially!)
  2. Download and install Google App plugin for Eclipse
  3. Create a Google App project with Eclipse
  4. Create a JSF 1.1 project using the template using JBoss Tools Eclipse plugin (or make your own JSF demo)
  5. Copy all the libraries of the JSF demo into the war/WEB-INF/lib/ directory of Google App project
  6. Copy the src java file of the JSF demo into the src directory of Google App project
  7. Copy the WebContent java file of the JSF demo into the war directory of Google App project
  8. Add this string:
    <sessions-enabled>true</sessions-enabled>
    on the appengine-web.xml file to enable the session
  9. If you used the JSF 1.1 JBoss Tools template you have to make the User bean serializable just adding implements Serializable to the User class

Done! You can now deploy and test it!!

When I’ll have more time I want to try JSF 1.2 and RichFaces, I think there will be more problems trying to run JBoss Seam (we’ll see! :) )

UPDATE: Facelets works perfectly in JSF 1.1, JSF 1.2 has a problem during startup (see here)

Demetrio

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • Technorati
, , ,
Trackback

4 comments untill now

  1. argh…. could not register account.. Belarus not in list :(

  2. Good post, thank you!

    I’m afraid one more option is required – you will need to configure JSF to store state on client-side.

    Overwise it may produce a problem in clustered environment (which GAE is in nature) – then one request will be processed on one instance of server (Jetty I heard) – but next request will be processed on another

  3. [...] Deploying a JSF 1.1 app (+ Facelets) on Google App | demetrio.it blog [...]

  4. hi, can u pz give link to the complete source(along with req libs)

Add your comment now

Currently you have JavaScript disabled. In order to post comments, please make sure JavaScript and Cookies are enabled, and reload the page. Click here for instructions on how to enable JavaScript in your browser.