Juha Palomäki

Blog entries in the Liferay category

  1. Digging Liferay article categories from database

    In order to investigate certain issues I wanted to find out the journal categories directly from database.

    Below is the select I came up with. This is for MySQL. The string operations on the second line try to extract the actual content that is inside the extra markup. It is …

  2. Write log from Liferay velocity templates

    A simple example for writing log entries from Liferay velocity templates

    #set ($logFactory = $portal.getClass().forName('com.liferay.portal.kernel.log.LogFactoryUtil'))
    #set ($log = $logFactory.getLog('myTemplate'))
    $log.info('Here we go again')
    
  3. Customizing Liferay service builder templates

    Liferay service builder code generation is based on Freemarker templates. The default templates come packaged inside the portal jar files. You can take a look at them for example in Github (note that those are from master branch - if you want to make modifications you should probably locate template files …

  4. Liferay service builder, class loader issues

    When you create a new service with Liferay service builder that system generates a whole lot of boilerplate code based on the few lines you put into the service.xml. Part of the code deals with the problem related to passing objects between different web applications.

    Think about a simple …

Juha Palomäki
Projects
Categories