Sample Liferay Yahoo UI Portlet
This is an example of Liferay portlet utilizing Yahoo UI widgets. Portlet was developed using NetBeans and Portal Pack.
JavaScripts and CSS files are loaded using standard liferay descriptors in header/footer of a portal page:
liferay-portlet.xml: ... <liferay-portlet-app> <portlet> <portlet-name>LiferayYUIPortlet</portlet-name> <instanceable>true</instanceable> <header-portlet-css>/css/tabview.css</header-portlet-css> <header-portlet-javascript>/js/yuiloader.js</header-portlet-javascript> <footer-portlet-javascript>/js/yuiportlet.js</footer-portlet-javascript> </portlet> </liferay-portlet-app>
Download:
Ready to deploy WAR file.
NetBeans project sources ZIP file.
Screenshot:
It should look like this:
post info - 1 comments | en | pl | Add comment