javaajaxframeworks

Java Framework for creating Ajax Web sites (as opposed to web applications)


I'm looking for a Java framework to develop a web site that will contain various AJAXy style components on it, but will use tradition page refreshes when switching between pages. I understand that there are a lot of Java based frameworks for building web applications (GWT, ZK etc.) but from what I can see these are good for building swing style web applications rather than traditional websites with Ajax components.

So my question is what Java frameworks would you suggest using for this case?


Solution

  • Almost any (good) JS component library will allow you to insert the library components (UI widgets) into your multi page application. Typically, your page loads and on load, you instantiate the (AJAX enabled) UI components and insert them into the page's DOM (usually bind them to some placeholder div tags on the page)

    With the above concept out of our way, you want to look for a library or combination of libraries working together that
    -Have the UI widgets you are looking for.
    -Integrates (fairly easily) with Java.

    Following possible options come to my mind

    1. RichFaces with JSF as mentioned by the above poster.
    2. YUI and DWR combination
    3. ExtJS + directjngine

    I am sure there are a lot more options but ones listed above are the ones that I have used successfully on production projects.