PVA – Archives

Sưu tầm những bài viết hay trên internet…

Tag Archives: Liferay

Scheduling in Liferay 5.2

I’m using Liferay 5.2.3 and writing portlets in PluginSDK environment. Following are some simple steps to make a scheduler: 1.Create a job: public class JobExcution implements IntervalJob { public JobExcution() { _interval = Time.DAY; } public long getInterval() { return _interval; } public void execute(JobExecutionContext context) throws JobExecutionException { try { System.out.println(“THIS IS THE ACTUAL [...]

Custom SQL in Liferay

From: http://liferay1.googlecode.com/svn/trunk/snippet/portal-devt/14-finder-writing-custom-sql.txt Read more: – http://ngthphat.wordpress.com/2011/03/11/custom-query-trong-service-builder/ – http://www.liferay.com/community/wiki/-/wiki/Main/Custom+Query+in+the+Ext+-+What+and+How – http://www.liferay.com/community/wiki/-/wiki/Main/How+to+create+a+custom+query+in+liferay/pop_up;jsessionid=9F93132D09F40A796FC915465F8DC11D.node-1 – http://code.google.com/p/t4pham-project/wiki/page009 ========================================================================================= How to work with Custom-sql? =========================================================================================

Liferay, Portlets and Ajax

From: http://www.excession.org.uk/blog/liferay-and-ajax.html Following on from the previous entry, this post deals with using Ajax from Liferay Portlets. (This blog entry was inspired by various posts in the Liferay Community Forums.) One of the key reasons to use Ajax with Portlets is to preserve the immediacy of the dashboard. When you are dealing with Portlets it [...]

Get parameters from URL in liferay

From: http://www.liferay.com/web/guest/community/forums/-/message_boards/message/788799 http://kamalkantrajput.blogspot.com/2009/07/playing-with-portleturl-in-liferay.html I used it to retrive the full URL including entryID with PortalUtil.getCurrentURL(req) import com.liferay.portal.util.PortalUtil; HttpServletRequest httpReq = PortalUtil.getOriginalServletRequest(PortalUtil.getHttpServletRequest(req)); String myArticleId = httpReq.getParameter(“articleId”);

From DB to simple UI – Liferay Portlet

From: http://www.emforge.net/web/liferay-petstore-portlet/wiki/-/wiki/Main/Step1:+From+DB+to+simple+UI Pet Catalog (or PetStore) is a most popular “HelloWorld” for J2EE technologies. Many tutorials, explained some new technology use it for demonstrating advantages, promised by this technology. Many of us started to study J2EE from these examples. Last of them readed by me was about PetStore on JSF 2.0 & EJB 3.1 in J2EE [...]

how to configure the Liferay Plugins SDK with the Eclipse

From: http://www.liferay.com/community/forums/-/message_boards/message/6479921 Its very simple and same like normal java/j2ee project. Please find the following steps. 1.Create one javaproject. 2.Right click on created javaproject and import extracted plugin sdk uisng import option(select File System). 3.Then you will find the structure of plugin sdk. 4.Create ext plugin or portlet using create.bat option. 5.Add your source folder(src)(ext-impl/src,ext-service/src etc…) [...]

Follow

Get every new post delivered to your Inbox.