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
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. There is a class with the name DLUtil that provide you with a method for this.
If you see the error
If we have a web content and we want to update the index of it we can do that with the following 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:
When a kaleo workflow in Liferay 6.2 sends an email, it adds automatically as the sender the email email@example.com. If you want to change that, you can't... at least not directly through the UI of control panel.
While working I encounter a strange exception: java.net.URISyntaxException: Illegal character in query at index 79: http:// ...Strange, because there was no special character in my URL. The index 79 was here:
If you want to try to update your Liferay Studio, you may encounter the following problem: