Minesweeper portlet tutorial update for Liferay 6

Here are the updated sources for the Minesweeper portlet tutorial for Liferay 6. I have tested that it works with version 6.0.5.

The problem with the old version was that it was giving me "jQuery is not defined" error when loading the page. Reason for this is that since Liferay 6 the jQuery is no longer built-in for your portlets so you have to include it separately. To me this sounds great since now I can always use the latest version of jQuery and not rely on the old, built-in version.

The fix was straight forward, download the latest version of jQuery, include it in the /js directory and add the following line to the liferay-portlet.xml file


No comments:

Post a Comment