|
Replies:
5
-
Last Post:
Sep 20, 2007 1:42 AM
by: ntruchsess
|
|
|
|
|
|
|
JSF with AJAX
Posted:
Aug 23, 2007 7:19 AM
|
|
|
Hello,
We are starting a new enterprise application with JSF & AJAX. We are exploring : 1. Dynamic Faces & jMaki 2. Ajax4jsf 3. ICEfaces What are other options ?
From 'Java EE' (http://java.sun.com/javaee/) site its seems that there is a push for Dynamic Faces & jMaki especially as both have been included in 'Sun Web Developer Pack' (http://developers.sun.com/web/swdp/). Also Dynamic Faces + jMaki supports JSF lifecycle & gives option to use AJAX componets created by other frameworks like DOJO. But it seems that combination is not popular ? Why ? There has been NO development in 'Dynamic Faces' since Jan 2007 (https://jsf-extensions.dev.java.net/servlets/ProjectDocumentList?folderID=5580&expandFolder=5580&folderID=5580). Is this correct ?
Which is a complete enterprise AJAX solution which supports JSF lifecycle and : 1. Is most popular ? 2. Under active development (so support/documentation readily available) ? 3. Likely to last and be widely adopted ?
Thank You.
|
|
|
|
|
|
|
Re: JSF with AJAX
Posted:
Aug 27, 2007 12:45 AM
in response to: user_1
|
|
|
Hi,
There are many good open source and commercial solutions for doing ajax. I can't speak as much for Ajax4JSF and Icefaces which are commercial products and seem to be popular with many. There is also the Myfaces project and another project called Project Woodstock which you may be found at:
https://woodstock.dev.java.net/
So Why Use jMaki?
With Project jMaki we have tried to focus on provide a good programming model on multiple platforms using multiple tools. We are nearing our initial 1.0 and thus the activity on the project.
jMaki provides great JSF support and tie ins to the JSF life-cycle. Early on we worked a great deal with the JSF team to make sure our design would work well. We did work very closely with the JSF Extensions team which is now focusing their efforts on JSF 2.0 taking what they learned from the JSF extensions project.
With jMaki we continue to provide first class support for JSF which can be seen with our support for Facelets, JSF 1.1, and JSF 1.2. We are re-working our tutorial for jMaki with JSF which we should provide again soon. In the meantime there are some good blogs on using jMaki with the visual web pack (formerly Creator) which you can find here:
http://blogs.sun.com/divas/entry/jmaki_9_7_using_the
and
http://blogs.sun.com/divas/entry/using_the_spry_accordion_in
Other resources include two test applications that may be found on our downloads page:
https://ajax.dev.java.net/download.html
On top of having a great application model that spans tools and servers we have a wide range of support for JavaScript libraries and even have an easy model for you to include your own widgets.
The best thing is you can iteratively create your Ajax functionality and when you are done you can jar up all your libraries (including all JS, CSS, html templates) and deliver them as components. This includes libraries with our wrappers for Dojo, Yahoo, and many other libraries.
As as popularity time will tell on jMaki. Our community has grown beyond a single person or company as far as developers and that is a good sign of a project that will last though time will tell.
Best of all we would like to have you get involved in the project either as a user or as a developer if that interests you.
Let me know if this doesn't cover everything.
-Greg
|
|
|
|
|
|
|
|
Re: JSF with AJAX
Posted:
Aug 29, 2007 6:44 AM
in response to: gmurray71
|
|
|
> solutions for doing ajax. I can't speak as much for > Ajax4JSF and Icefaces which are commercial products > and seem to be popular with many. There is also the
Hi,
Ajax4JSF is not a commercial product (http://ajax4jsf.dev.java.net). Let me talk about it a little bit because Ajax4JSF isn't spoken much. a4j is free and used to make un-ajaxable JSF components ajaxable. For example, in a pure JSF page, a h:commandButton will submit a form and go to another page (or stay on that page) depend on what you write in the navigation section of the faces-config.xml. A4j can add an ajax feature to that button such that when you click that button, the form is submit and only are selected sections (you specify these sections in the xhmtl file if you use facelets) on that page refreshed (of course you can refresh the section that contains the form and make the form disappear).
In the past, you can use a4j alone, but currently, a4j is merged with richfaces which is an ajaxable JSF component set. Richfaces provides some useful components such as suggestion box, some kinds of tree, some kinds of table (but not treeTable), drag and drop features, some kinds of panel, tabs, menus, calendar ... BUT richfaces is lack of a tree table, a file upload component which are available in trinidad (another free JSF component set from apache). Both a4j and richfaces are free. This demo (http://livedemo.exadel.com/richfaces-demo/) uses richfaces 3.0.1. You can look at the demo using richfaces 3.1.0 (which is scheduled to be generally available on Sep 6 07) by downloading the latest war file from here http://maven.exadel.com/org/richfaces/samples/richfaces-demo/3.1.0-SNAPSHOT/, dropping it in the webapps folder of the latest Tomcat 6 (I haven't tried it with Tomcat 5.5, but I think it will work).
Icefaces has a free edition (I don't know what's the main difference between a free and a commercial Icefaces edition because I never use icefaces). Icefaces provides some very interesting components (http://component-showcase.icefaces.org/component-showcase/). I heard that icefaces was very buggy before (quite a long time ago), but it might not be true now. Icefaces cannot be used with a4j and richfaces (or it's very difficult to make them work together, the Icefaces CTO said).
I don't know if a4j and richfaces work with trinidad or not (that's what I will try this week). You can have a look at the JSF components that trinidad exposes at http://www.irian.at/trinidad-demo/faces/componentDemos.jspx. If I can make a4j, richfaces and trinidad work together, I don't think I'll need anything else for quite a while.
|
|
|
|
|
|
|
|
Re: JSF with AJAX
Posted:
Sep 5, 2007 11:42 PM
in response to: dxxvi
|
|
|
Hi
Did you get Trinidad + Ajax4jsf + RixhFaces working together - If you did I would like to hear how you did that
We have Trinidad +Tomahawk working together We tried to integrate Trinidad + ajax4jsf + tomahawk + richfaces together - It did not work at all
Thanks Regards Geetha
|
|
|
|
|
|
|
|
Re: JSF with AJAX
Posted:
Aug 29, 2007 4:31 AM
in response to: user_1
|
|
|
jMaki looks like an awesome project, but for the time being, I had to give up on using it. What isn't immediately clear is that jMaki only works with JSF if you are using JSP 2.1. If you are using Tomcat, then that means you need to be at version 6.x. If you are not using JSP and are coding your pages in XHTML, then jMaki simply does not work, not fully anyway. I'm hoping this will be addressed so that I can reconsider its usage in my own project.
|
|
|
|
|
|
|
|
Re: JSF with AJAX
Posted:
Sep 20, 2007 1:42 AM
in response to: jackett_dad
|
|
|
I've written a new style of integrating the JSF-serverside into jMaki publish/subscribe. It allows to receive messages published on the client by a 'JMakiEventListener' attached to the 'widget'-tag. In the response it allows to send back any number of messages to be published on the client. In addition to this, you can do Dynafaces partial-page-update at the same time.
Due to the Dynafaces-dependency it currently only runs on JSF 1.2 (both Facelets and JSP) though.
check out http://ajax.dev.java.net/jmakieventlistenertag.html to read more!
|
|
|
|
|