O'Reilly logo

Alfresco 3 Business Solutions by Martin Bergljung

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

This chapter has shown us that it is quite easy to extract content from Alfresco and build mashups in a portal like Liferay. We created two different types of portlets—one that displayed content with plain HTML and another portlet that used the more Ajax-friendly GWT/GXT framework.

The HTML portlet fetched content from Alfresco with Apache HTTP Client and Jackson JSON parser. All requests were made from the server side, so there was no problem with cross-domain requests. The GXT portlet on the other hand made Ajax calls from the client to get the Alfresco content, this caused problems as these calls are cross-domain calls, which are not allowed. We solved this by using a script tag proxy.

Both these portlets used a custom web script and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required