<< Joel just linked to a new TAB idea .... | Home | Google Code Hosting - First Thoughts >>

DeveloperWorks on DWR and Portlets

There is another article up on DeveloperWorks about DWR, this time getting DWR to work with portlets. From the article:

"Many developers are looking to use Ajax technologies to improve the user experience of Web-based applications, but Ajax programming can be a tricky task. The open source Direct Web Remoting (DWR) library can make Ajax development easier for Java developers by automatically transforming Java classes into JavaScript classes. In this article, you'll learn how how to use DWR and JSR-168-compliant portlets to build an Ajax application quickly and easily."

The article uses DWR to build a sample Ajax application based on three portlets with the Jetspeed 2.0 portal.

"With DWR, it's almost as if JavaBeans were available in the browser. DWR simplifies your work by hiding almost all the details of Ajax and allows you to concentrate on the task at hand instead of the nuts and bolts of Ajax development."

It's worth a read if you are thinking of using DWR in a portlet environment.

Tags :


Re: DeveloperWorks on DWR and Portlets

Has anyone been able to get these to work in an alternative portlet container? I have tried liferay and the new open source sun portal and the deployed portlets load but are unavailable. Are there unlisted dwr dependencies outside of the jetspeed implementation

Re: DeveloperWorks on DWR and Portlets

I have tried to port the portlet (interportlet communication using dwr) to Websphere Portal 6.0 but am seeing javascript conflicts on the page.... i have to place the orders portlet third on the list to see the other portlets. anybody has got this working with WPS 6.0

Re: DeveloperWorks on DWR and Portlets

Did you ever get DWR working with Liferay? We're thinking about using a good AJAX toolkit with our distribution.

Re: DeveloperWorks on DWR and Portlets

I don't know what could be causing any failures. Detailed reports to the mailing list would be very helpful: http://getahead.ltd.uk/dwr/support Joe.

Re: DeveloperWorks on DWR and Portlets

I have the sample working on Liferay. The issue with the sample war is the reference to the TagLib PortLetTLD in the web.xml file. The reference is added by IBM's IDE and must be removed to make the portlet truely jsr168 compliant.

Re: DeveloperWorks on DWR and Portlets

I have the DWR sample from IBM working with liferay. You simply need to remove the PORTLET-TLD taglib entry from the web.xml file. This is an entry that Rational Developer inputs into the file.

Add a comment Send a TrackBack