Uncategorized

18
05/2016

Make your control panel custom portlet visible per site

Lets us assume we want to have an admin portlet in the content area in our site. We can do this by adding the following xml elements in the liferay-portlet.xml

18
05/2016

Getting the preview URL of a File Entry

If you are working in a custom portlet and with FileEntries, it is very likely that you will need the preview url of this file, to use it in your UI.

20
01/2016

Reindex an entity by the id

If we have a web content and we want to update the index of it we can do that with the following code:

19
01/2016

Getting the model hints in the code

While trying to make a custom validator in a form, there was the need to reuse the information set in the portlet-model-hints.xml file. You can do this by using the following Util class:

14
12/2015

Liferay Kaleo workflows: How to get rid of no-reply@liferay.com

When a kaleo workflow in Liferay 6.2 sends an email, it adds automatically as the sender the email no-reply@liferay.com. If you want to change that, you can't...

10
12/2015

How to lose time with something you can't see...

While working I encounter a strange exception:

31
05/2013

Don't null the modified date in web contents

It seems that, at least liferay EE 6.1ga1, doesn’t like the null value in the field modified date.

31
05/2013

Log the render time of the portlets on a page

Here is an interesting post about logging the render time of all portlets on a

31
05/2013

How to show the configuration of a portlet in the control panel

Create a config.jsp and in the portlet.xml insert the following (in the portlet section):

31
05/2013

Source of knowledge

You can visit this link and have a look at all the liferay presentations of the past.

31
05/2013

How to remove the console from the portlets

Just use the following property: javascript.log.enabled=false

31
05/2013

How to get rid of the @override errors in ant build

Go to your SDK and edit the build.${username}.properties and change the properties

10
01/2012

GWT plugin + Mac OS X

Have you troubles run your GWT project in Safari in Mac OS X? Can't you find the GWT plugin? Try Omniweb.

29
12/2011

Disabling phone number detection in iphone phonegap apps

Recently I found out that in a phone gap app for iPhone a number of a shipment in the UI got a link out of nowhere.

27
12/2011

Can't find index.html in android app using phonegap

I 've experienced a strange situation, while trying to make my phonegap application run in the android emulator.

22
12/2011

Liferay diaries: Changing virtual host for a community backup

Once in a while one has to replicate an entire Liferay installation locally.

17
10/2011

Liferay diaries: Multiple spring form controllers in a portlet

Now there comes a moment in the life of every portlet author, be it a seasoned veteran (like jstam) or a fresh starter like myself when you need to do implement something out of the ordinary for wh

17
10/2011

Liferay diaries: Help! My form post parameters are empty!

While hacking a Spring & Liferay prototype, I'm suddenly wondering about why during a form submission there are no parameters (not even empty or null) submitted by the form.