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 ...