Dynamic Data Lists III - Blog. Hi Marcellus, It's a nice blog, learned a lot.
But when i tried to create list template. <b>It gives this error -</b> An error occurred while processing the template. Invocation of method 'createJSONObject' in class com.liferay.portal.json.JSONFactoryImpl threw exception com.liferay.portal.kernel.json.JSONException: java.lang.NullPointerException at 20null[line 25, column 48] 1## Get the reference of DDL Record Service via serviceLocator, which is automatically set in the context 3#set ($ddlRecordService = $serviceLocator.findService('com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalService')) 5## $reserved_record_set_id is also an object set in the context and it has the value of the list id configured for the portlet instance 7#set ($recordSetId = $getterUtil.getInteger($reserved_record_set_id.data, 0)) 9## call to the retrieve all records of the list 11#set ($records = $ddlRecordService.getRecords($recordSetId)) 13#foreach($record in $records)
Liferay/liferay-plugins. An alternative way for Servlet in Liferay hook - Forums. Hi Feilong, Yes, use Servlet-filter and servlet-filter-mappings hooks Abstracted from the Lifery DEV book: The portal created a delegation filter to handle all servlet filtering needs.
This allows dynamically adding new servlet filters and servlet filters mapping, or overriding existing servlet filters and servlet filters mapping. Current filters and mappings are moved to the XML file liferay-filter-web.xml, read by this filter. For instance, to add new servlet filter Knowledge Base Filter, you can leverage servlet filters and servlet filters mapping hooks. Then you should provide servlet filter implementation class com.liferay.knowledgebase.hook.filter.KBFilter. As you can see, the class KBFilter must implement the methods of the interface Filter: destroy, init and doFilter. Hope that it helps Jonas ==================The Author of Liferay Books:Liferay User Interface DevelopmentLiferay Portal 6 Enterprise IntranetsLiferay Portal 5.2 Systems DevelopmentLiferay Portal Enterprise Intranets. Liferay Workflow In Action. Hi guys!
One of the many great improvements of Liferay 6 is the workflow system, as many of you already know. We have been working hard on it and we have developed lots of new functionallities that we're sure you'll love. In this blog post I'll implement a use case so that you can see workflow in action, and by the way, I announce that in the wiki we've created a series of articles that describe the workflow portlets and what are they for. You can read them by clicking in this wiki link: Intro: In this example we will create the following users: Reader: this is a simple user that is a member of the community "My Use Case Community" Content Writer: this is the content writer of the community. Content Reviewer: this is the person in charge of controling the content that is going to be published. Content Publicator: this is the member of the community that publishes content, add new applications to the community and so on.
Configure the environment: Assign roles and permissions: Creating Liferay 6 plugin web service. Today I tried to create a service in a plugin portlet of liferay.
Since this is not very straight forward, it took me the whole day to get my simple service running. As a matter of fact, I decided to publish this on the web. I used Liferay6.0.5 source and plugin sdk, along with eclipse 3.6, with WTP and Liferay IDE 1.0.1. The base platform was Java1.6.0_21 and MySQL5.1.46, both running on openSuse11.3. The deployment server was tomcat6.0.26. Step 1: Setup liferay source project and tomcat Unzip the liferay source in your eclipse workspace. Step 2: Setup plugin SDK. Download and unzip the plugins sdk. Step 3: Create the service project.
Liferay Announcements Service.
Microformats.