Showing posts with label Liferay. Show all posts
Showing posts with label Liferay. Show all posts

27 September, 2016

Overriding LPKG Files : Liferay DXP

Liferay provides a way to update modules without modifying the original LPKG file they're packaged in. You can do this by overriding the LPKG file.
To override a JAR or WAR from any LPKG other than the Static LPKG, 

1) first create a folder named override in the Liferay instance's osgi/marketplace folder. 2) Drop the updated JAR into this folder, making sure its name is the same as the JAR in the original LPKG, minus the version info. For example, if you want to override the com.liferay.amazon.rankings.web-1.0.5.jar from the Liferay CE Amazon Rankings.lpkg, you would insert a JAR named com.liferay.amazon.rankings.web.jar into the osgi/marketplace/override folder.
3) Overriding JARs from the Static LPKG works the same way, but the updated JARs go into the osgi/static folder instead. For example, if you want to override the com.liferay.portal.profile-1.0.3.jar, you would insert a JAR named com.liferay.portal.profile.jarinto the osgi/static folder.

Note: To undo these changes, delete the overriding JAR; portal will use the original LPKG JAR on its next startup. Note that adding and removing JARs must be done while the portal is shut down. Changes take effect the next time the portal is started.

Source : https://github.com/liferay/liferay-portal/blob/master/tools/osgi-marketplace-override-README.markdown 

I am sure this would come across someday when you would like to override LPKG files for small/large scale changes.

30 March, 2016

Useful Roles and permission API

Reading portlet resources and model resources:
<pre>
List<String> portletResources = ResourceActionsUtil.getPortletResourceActions(PortletLocalServiceUtil.getPortletById(portletId).getPortletId());

List<String> modelResource = ResourceActionsUtil.getPortletModelResources(portletId);
</pre>

09 March, 2016

OpenAM (OpenSSO) + Liferay 6.2

We are starting OpenAM integration by considering we have setup OpenDJ with Liferay. See http://www.liferaysolution.com/2016/03/opendj-liferay-62.html

Install OpenDJ


2)  You can deploy this war file in the same tomcat where your liferay is runinng or you can deploy in separate tomcat server (apache-tomcat-7.0.68). My recommendation is , use separate tomcat server for that

3) For our comfort, rename war file from OpenAM-11.0.0.war to OpenSSO.war and start tomcat server for deployment

4) Once it's deployed into tomcat, you can access it through  http://jignesh.openam.com:7070/OpenSSO. Here jignesh.openam.com:7070 is the host name which i configured for newly installed tomcat server.
Also make sure that server have enough JVM memory allocation using below line in startup.bat
set JAVA_OPTS=-Dfile.encoding=UTF-8 -Xms128m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=256m


OpenDJ + Liferay 6.2

Follow below steps to integrate OpenAM & OpenDJ with Liferay 6.2 :

Install OpenDJ :


2) Extract OpenDJ-3.0.0.zip and Click on setup .bat file to do a setup of OpenDJ

3) Click next and check mark the accept checkbox
4) Server Setting Screen :
FQHN : opendj.jignesh.com
LDAP listner port : 389
Administrator connection port : 4444
Root User DN: cn=Manager
password : test

05 January, 2016

JSON Web Service

Friends,

You may be aware that Liferay provides facility to expose remote service in form of REST and SOAP.

21 November, 2015

Liferay 7 : Module Framework (OSGi)

Hello Friends,

I am sure you would be happy to see Liferay in some new way of development rather than just what you are doing currently.

Yes I am talking about Liferay 7.

I know very few people aware that LIFERAY is going to launch new version of Liferay (Liferay 7) very soon(May be early months of 2016).

Liferay Symposium -2015 : LRNAS-2015
LRNAS-2015

12 October, 2015

Liferay 7 - New Look

Hello Friends,

Here its some new looks which you will be able to see in up coming version of Liferay. Yeahhh It's Liferay 7

Trailer :




17 September, 2015

Spring Web Flow With Liferay Portlet

Friends,

Here I have something interesting which can be implemented in Liferay porltet development which is Spring MVC Web Flow where you can simply understand the application/functionality flow by looking one configuration file.



05 September, 2015

Test Web Service With SOAP UI

Hello Friends,

I know many of you will be familiar with SOAP UI tool which is available to test SOAP as well as REST web services.


07 July, 2015

Autocomplete + AJAX + AlloyUI

You can use below code to use autocomplete + AJAX + AUI :

31 March, 2015

REST Call Using jQuery AJAX

Here you can see how you can make REST service call using jQuery :


Navigation using Structure and Template

you can find some code here which can be used for navigation using web content structure and template :

29 December, 2014

Create UUID using ajax call

Below code represents, How to create UUID using  Liferay API with AJAX call :

16 December, 2014

Critics' Choice Award - 2014

Guys, this is important to know about BEST CMS frameworks which can be better judge from critics' choice CMS survey and award. So here you can see major big players who are playing good role in specific categories . 2014 Critics' Choice CMS Award Winners These award winners were selected by a panel of judges. To learn more about how the awards work, visit "How the Awards Work"

11 December, 2014

Liferay Certification

Friends,

This post specially created to solve your queries related to Liferay Certification.
Put your query and comment here to resolve your queries and questions and community or blog members will reply with answer as per their expertise on Liferay.

14 November, 2014

Liferay 7 Features

Hello Folks,

I know its bit early to list all the new features coming up in Liferay 7 but I catered some of the information when i was surfing Liferay community.
Liferay 7 comes up with some cool new features which I will be listing over here.

06 November, 2014

Liferay 6.2 Certified Professional

Hello Members,

Recently Liferay Launched "Liferay 6.2 Certified Professional Developer" which is really good and will help everybody to get hands through with Liferay 6.2 new features.
So what are you waiting for ?? Be ready to fix new badge in your profile for certification.

You can get more detail about certification announcement on https://www.liferay.com/web/jeffrey.handa/blog/-/blogs/liferay-6-2-certified-professional-developer-now-available.

Syllabus : http://www.liferay.com/services/certification/professional-developer/6.2

Cheers, 

27 October, 2014

www.liferaysolution.com feedback

Hello Friends,

We have completed around more than 2 years with www.liferaysolution.com and sharing many useful Liferay solutions and important information about liferay development as well as other useful stuff.
I am sure your valuable inputs/feedback will help us to provide more better way to provide solutions and support on liferay.

17 October, 2014

Escape HTML using JSTL

Hello Friends,

If you are using JSTL to display HTML data in your application then you can escape HTML 2 ways in JSTL:

1) Using <c:out> tag
<c:out value="${specialCharString or HTML}" escapeXml="true"/>

2) Using EL Function

${fn:escapeXml("<i> This is jignesh vachhani")} 

Hope this will be useful somewhere.

If you want to use Liferay API then you can simply use

HTMLUtil.escape(String HTMLString)


Show/Display HTML tag in jsp

${fn:escapeXml(fn:replace(fn:replace(fn:replace("<div><p>This is jignesh testing</p></div>",'"','&quot;'),'<','&lt;'),'>','&gt;'))}

Popular Posts

Featured Post

Liferay 7.3 compatibility matrix

Compatibility Matrix Liferay's general policy is to test Liferay Portal CE against newer major releases of operating systems, open s...