Meet The Author

I'm Jitendra Rajput (Senior Consultant @ CIGNEX Datamatics) , A Programmer , Blogger ,Liferay Top Contributor for Year 2014 Q4, Liferay 6.1 Certified Professional , Technology Enthusiast and apart from this interested in making new friends , love music and love to play CHESS. Expressing my thoughts using blog.

author

How to read portlet.properties file in Liferay DXP

Leave a Comment

How to read portlet.properties file in Liferay DXP

In case if you are using portlet.properties file in Osgi module then using below snippet you can read property specified in portlet.properties file.

private static final Configuration _configuration = ConfigurationFactoryUtil
  .getConfiguration(ReportUtil.class.getClassLoader(), "portlet");

String fromEmailAddress = _configuration.get("report.form.emailaddress");


Read more »

How to include static resources (CSS/JS/Images) in Liferay OSGI module

Leave a Comment
How to include static resources (CSS/JS/Images) in Liferay OSGI module As you know development approach has been completely changed with Liferay DXP. In older version of Liferay it was easy to include static resource like CSS , JS and Images as part of portlet but with Liferay DXP you have to do few additional changes to include them.

First of all you need to add webcontext path in your modules bnd file.

Web-ContextPath: /my-custom-portlet

Read more »

How to include custom portlet in theme - Liferay DXP

Leave a Comment
How to include custom portlet in theme You can include out of box as well as custom portlet inside theme in Liferay dxp but way has been changed.

By default Liferay uses free marker templates for theme. You can use below snippet to include any custom portlet in theme.

Read more »

How to specify external jar dependency in Liferay DXP

Leave a Comment
How to specify external jar dependency in Liferay DXP While doing development in Liferay DXP your module may depends on external jar files . If required jar file is available in Liferay Nexus Repository then you can include them by using BND and Gradle file.

You can see Liferay nexus repository configured in your settings.gradle file under repository tag.

repositories {
maven {
url "https://cdn.lfrs.sl/repository.liferay.com/nexus/content/groups/public"
}
mavenLocal()

Read more »

How to specify module dependencies in Liferay DXP

Leave a Comment
How to specify module dependencies in Liferay DXP Best advantages of using OSGi is that you can divide your components in small micro services and as when required module's can use each other's services.

Let say if you have module A which depends on module B then can specify module dependency in bnd.bnd file of module A as below.

compileOnly project(":modules:test-module-a")

Read more »

Previous PostOlder Posts Home