List Info

Thread: JSF-Ajax Integration Frameworks




JSF-Ajax Integration Frameworks
user name
2006-05-25 02:45:23
Hi everyone.
 
I just have put an example how Ajax4jsf works with Facelets on the https://ajax4jsf.dev.java.net/  (at the bottom of the page). The live demo is here: http://livedemo.exadel.com/a4j-numberguess-facelets/
 
 
We have not too much for interaction the javascript code on the page yet (We just do not want to force end developers to use javascript on the pages more than enough). Only the reference to the event on the target component. Such as <a4j:support event="onmouseup"> . Internally, for the component development, we use javascript, namely prototype.js's  AJAX object and its API. (We use prototype.js instead of sexy Dojo. At least it is version 1.4, but not 0.3 ). So, from this point of view, Jacob is right. It is a higher level concept.
 
The primary ideas of Ajax4jsf are enhancing the existing JSF components adding AJAX capability to them and establishing and standardizing the process to create new JSF components with built-in AJAX support and other kind of richness. From this point of view <a4j:support> is an example of the first idea, but the <a4j:commandButton> is a prove ;for the second one. Also, everything should be fully integrated into the JSF environment including livecycle and event system&nbsp;(reusing the same validatiors, converters and renderers in AJAX mode the same way as in regular mode).
Actually, it were the ideas of Alexander Smirnov when he introduced his framework about one year ago ( http://smirnov.org.ru/en/ajax-jsf.html ). We have added to it the resource manager (including generation resources on-the-fly with setting right content type) and skinning (predefined set of params to define look-n-feel). On the way to contribute to open source&nbsp;- Component Development Kit(CDK) and auto testing environment.
 
We like the idea of integrating existing JS widgets into JSF environment. The only question is how. Personally, I do not accept&nbsp;EBA http://developer.ebusiness-apps.com:8888/EbaJsfComboBox/ ) way when the widget send the open URL to the server. This is what I call hack-my-bean-approach. Like this one:
At least, the Mabon ( https://mabon.dev.java.net/ ) secure mechanism is required here, but not only. JSF has events, such as value changes event. Why one more is need here. Converters, validators: as soon as it is an input controls, how the JSF works here.
 
JMaki ; ( https://ajax.dev.java.net/ &nbsp;) . Cool approach to involve the existing widgets. I have to look closely how the server-side intergation works in JMaki to understand my position about this approach.
 
JSON, sent as AJAX response: if it is for replacing the part of the page, I did not see the point why we have to duplicate the existing renderers. Ok, if we enhance the existing JS widget that works with JSON originally, it makes sense.
 
Idea about Ajax4faces foundation is great.&nbsp;Ajax4jsf can donate the first part of the project name already ). Seriously, it is a right time to concentrate our efforts. We have several solutions that are designed and developed independently, but pretty close to each other conceptly. So, it is a good sign that we are on the right way to establish the optimal approach&nbsp;for&nbsp;JSF-AJAX integration.
 
--
 
 

----- Original Message -----
From: jacobhookom.net
To: usersfacelets.dev.java.net
Sent: Wednesday, May 24, 2006 11:59 AM
Subject: RE: JSF-Ajax Integration Frameworks


We are working on it now actually.

There was also discussion with Exadel (ajax4jsf) and IceFaces folks about collaborating on a solution.  Ajax4jsf is the closest to the solution we presented at J1, but it's too high level and we need an API which does integrate with other client-side coding, including JS widgets from Dojo or MyFaces.&nbsp; So work is being done to setup this foundation such that ajax4faces, etc can extend higher level concepts on top of it to make development even easier.

-- Jacob



 
Hey Jacob-

When are you, Ed and Adam going to release the Ajax-JSF framework (see message below)?&nbsp; Based on your javaone demo, I'm very interested.  Ed mentioned it was going to be a part of the jsf-extensions project on dev.java.net, but I don't see anything.

I think that your approach or the ajax4jsf project that the exadel people have put together are clearly the leading contenders for simple JSF-Ajax integration.

For those that are interested:
Ajax4JSF https://ajax4jsf.dev.java.net/
Exadel's VCP http://www.exadel.com/web/portal/products/VisualComponentPlatform
JSF-Extensions https://jsf-extensions.dev.java.net/

Adam Brod
Product Development Team
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )