Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Featured

Run Dynamic Queries for All Liferay Plugins Portlets Using Common Service Builder

In this blog, I will be putting some light on how you can run dynamic queries for all liferay plugins portlets using common service builder. For this you can easily use same service builder for all Liferay plugin portlets and can create a se...

Override Portlet MVC Action Command in Liferay 7

Hello Programmers,   If you are looking to override a Portlet MVC Action Command then you are at correct place. I'm going to override LoginMVCActionCommand in this example. I'm writing the steps here. Before starting ...

Override Login JSP using Liferay OSGI module

Dear Programmers,   Liferay 7 has been modularized to a great extend, so the most of the JSPs you might want to override are no longer in Liferay's core. Being modularized, Liferay 7 comes with a modular approach to override the co...

Apache Felix Gogo in Liferay 7

Apache Felix Gogo helps to get the details of all modules installed in Liferay 7. It is very useful when overriding JSP or Actions.   Before overriding, you must know the bundle in Liferay's module framework and its version so that...

How to create a module using Liferay Plugin SDK in Liferay 7.0

Follow the following steps to create a module using Liferay Plugin SDK in Liferay 7.0. 1) Install Liferay IDE in your eclipse (if not yet installed). Follow this to install Liferay IDE. 2) Open eclipse and create a new Liferay Workspace Pro...

Liferay theme generator

We can create themes using Theme Generator. Liferay Theme Generator is an easy to use command line tool to generate the themes. Liferay plugin SDK isn't required to create the liferay theme and it works well with liferay 6.2 and 7 and probabl...

Liferay 6.2/7 plugin project settings

Hello programmers, First of all download the liferay bundle and plugin from here. Keep them in a directory say 'liferay7' in your home. I used Liferay 7 and MySQL 5.6. Liferay 7 uses MySQL 5.6+.  You may find some issues w...

Hide portlet from guest users

Hello programmers, This blog gonna help you to hide a portlet from the guest users. It's very easy. To hide a portlet for any role, a very simple method is to remove the view permission from the portlet configuration. Now if yo...

Default user public layout configuration

If we create a user website in Liferay, we find that it creates a 'Welcome' page on the user dashboard. Liferay creates this page by itself. And for every user, it looks similar, default layout, default color codes, default them...

Preview mp4 video in liferay

Hello guys, Liferay provide xuggler as external service for convert preview of any video type to mp4  using xuggler. We need to install xuggler from external service under server administrator in liferay portal. Below screen help yo...

Custom form validation in liferay 6.2

Liferay uses AlloyUI taglibs for front-end development and it provides inbuilt input field validation rules. Following are inbuild validation rules of alloy liferay : Here’s a list of form validation rules available for AlloyUI’...

Image Cropper in liferay AlloyUi

Image cropper is the UI part of the web application to crop the image as requirement using mouse drag-drop. Image cropper is inbuilt functionality in the Liferay. Follow below steps to better understand : Load the below Js and CSS file...

Datepicker in liferay alloyUi

Hello Guys  Liferay provides inbuilt datepicker of alloy script. Liferay use alloy and AUI script instead javascript or jQuery. Below example help you for better understanding : <input class="form-control" type=&qu...

AutoComplete in liferay

Hello Guys,     Liferay provides inbuilt auto complete or auto-suggestion. Autocomplete is an inbuilt function of alloy script which is allowed to customize the auto-complete list (i.e UI and action) Liferay AUI has had javas...

How to create cron job in liferay

Cron job is a UNIX tool, its scheduling capabilities are powerful and proven. The CronTrigger class of cron is based on the scheduling capabilities.   CronTrigger uses “cron expressions”, which are able to create firing sch...

Portlet Define Objects tag in jsp

We use Portlet Define Objects <Portlet:DefineObjects> tag in our JSP code, while developing a portlet in Liferay. We generally use this tag to inherit the predefined objects in our JSP. By doing this, we get escape to write the entire code ...

How to configure office365 email in liferay

Hello Guys I am writting blog about configure office365 email in liferay. Following are the office365 configuration details : SMTP Setting : Server name: smtp.office365.com Port: 587 Encryption method: TLS Follow below steps to c...

setting portlet preferences from portlet controller in liferay

Hello Guys Portlet preferences is use for layout setup in liferay. Here, We have setup layout from controller of the custom portlet in liferay. Follow the below steps to setup layout: Step 1: add below lines in Liferay-portlet.xml ...

Create users without email address in liferay

Hello Guys Liferay provide functionality to create user without email address. Here, we need to set user email rquired property to false in portal-ext.properties file. users.email.address.required=false You need to set the suffix of...

Get screenname of current user in liferay

Hello Guys ScreenName is nik name or unique identification of the user and we need to use screenname for user tagging and identify the user in liferay. There are two ways to get screenname of current user : Step 1: Get screenname ...

Get user by using screenname in liferay

Hello Guys ScreenName is uniquely identify to user and we can use screenname as user tag name in liferay. Here, two ways to get user by using screenname with companyId : Step 1: Get user by using screenname in jsp(view.jsp) page...

Resolve Generic Engine spellcheck reindexing causes java.lang.NullPointerException

Hello Guys Many times we are getting NullPointerException in our liferay server log during upload, upadte and delete files. Error look like as below in our server log : 20:22:50,828 INFO [liferay/search_writer/SYSTEM_ENGINE-3][Ba...

Creating a new type of aui validator in liferay

Liferay use aui validator to validate input field of the form. Alloy script provide default validator but many times we need to create new type validator. See below default liferay aui validator : <aui:input name="firstName" type="text"...

How to remove borders of a portlet in liferay

Hello Guys Now, We are removing borders of a portlet in liferay that added using tag as below : <liferay-portlet:runtime portletName="customSocialNotifications_WAR" /> You can use below attribute available in same tag as default...

Find Layouts with the specific JournalArticle in AssetPublisher portlets

Hello Guys Here, We find all layouts with the specific JournalArticle in AssetPublisher portlets. With easy requirements someone publish a JournalArticle with specific Tags i.e TagA, TagB. On the other pages (Layouts) of the liferay porta...

Startup Listener or events in Liferay

Hello Guys Liferay provide startup funcationality to deploy theme. portlet and hooks etc. You can utilize the StartupAction. It is merely an Event of liferay, which is get triggered on startup of a plugin in liferay portal. This method wil...

Multiple Pages Inside One Liferay Portlet

Hello Guys We can add multiple Pages Inside One Liferay Portlet from portlet class. You can display any JSP page's you want via the PortletRequestDispatcher in your doView, doHelp, doEdit etc. method. Below example help you to add multipl...

How to set a Cookie in Liferay portlet?

Hello Guys Liferay is an EMS portal to develop java based web appliction and having portlets to write business logics. We can set cookies in liferay portlet without heavily modifying the Liferay portal itself, The best way to set the portlet...

Replace or override function on a Liferay native portlet

Liferay have several ways to modify the functionality of a native Liferay portlet and you can extend the functionality. Liferay provide most hooked functionality is described by using the liferay-hook.xml file located in /docroot/WEB-INF directo...

Kaleo workflow in custom portlet

Liferay provide default workflow for inbuild portlets but we can use our custom portlets also. So, I here for you to implement workflow in our custom portlets and make assist of the activity. Add entity in portlet service.xml regarding your w...

Add nested portlets through code in liferay

Hello Guys We can add nested portlets through code in liferay. Liferay provide this funcationlity, for complete example I will assume that you want to add nested portlet to current page using another portlets action handler. Add these meth...

How to deploy portlets to Liferay

Portlet is application of the liferay portal, In which we write the business logic of the application. Follow below steps to create and deploy the liferay portal : Step 1: Create liferay portlet in eclipse. Step 2: Right click on portlet...

Set title of the page for view pages in liferay

Hello Guys I here to set title of the view page in liferay. We can also set the title of the portlets. We have many ways to set page title of the liferay page because liferay provide dynamic functionality. You can add page title by using...

How to hide portlet in liferay by using javascript

When we add protlet on the page it by default set visible. Now, hide the portlet or set visible false using javascript. For this you can combine your javascript approach with the parameter approach as follows: <% String paramFromReque...

Create portlet configuration page in liferay

Portlet configuration page use some parameters for liferay portlet. For example I would like to select what page should a controller display when viewing it. Below steps help you to create configuration page in liferay : Step 1: Create con...

What is the default approach for logging in Liferay

Liferay provide default logging functionality, So you can instantiate your Log4j Log object through LogFactory, identified by the current class name, then enable the log category on the control panels "Log level" settings tab. Following steps ...

How to add custom portlet in Liferay Control Panel section

Hello Guys Liferay allow to create custom portlet to write own business logic or controller code. Portlet is a small application of the liferay. When we need to define rules on the custom portlet, So we need to add custom portlet in liferay...

How to find portlets added on a particular page in Liferay

Hello Guys Portlet used to write business logic in liferay and liferay also provide page creation functionality. Portlet add on a particular page of the website of liferay. Liferay page create from website administration in the liferay. Bel...

How to use auto login in liferay

Hello Guys I am writing blog to develop auto login logic in liferay. Liferay provide auto login functionality, So we can login by screenName, userId and email address parameter's. We need to create hook to implement AutoLogin interface,...

Respond to http request with json object in Liferay Portlet

Hello Guys Ajax known as Asynchronous JavaScript and XML. Ajax based web applications used to send data and retrieve from a server in the background without refreshing complete web page. When we send http request to server from client side us...

Accessing the user from a liferay portlet

Hello Guys Liferay is an EMS to develop java based web application and it's have portlets to write business logics. Liferay provide inbuilt login and other portlets, so now we need to use functionality of them in our custom portlets. Fo...

How to create roles in liferay

Hello guys Here, I am creating custom roles in liferay 6.2. I have three (i.e vendor, client and standard user) roles to create in liferay portal and assign them permissions, So we need to create "regular" roles. Step 1: Create custom roles ...

How to assign role to user in liferay

Hello guys Here, I assign custom created roles to user from custom portlet in liferay 6.2. I create three regular roles i.e vendor, client and standard user from liferay portal. Now, I assign the role to particular user from liferay portl...

How to optimize performance of liferay application

Hello guys I am writing blog to improve performance of liferay web application. Liferay provide some portal properties to improve application performance. Put below properties in portal-ext.properties file in application server. javascri...

How to configure memory argument and server mode for Liferay in Tomacat server?

To increase memory and change server mode you just need to write below arguments in setenv.sh file. Example: path: /bundles/tomcat-7.0.42/bin/setenv.sh CATALINA_OPTS="$CATALINA_OPTS -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true -...

Deleting user by userId in liferay

Hello Guys Here, I am writing blog for deleting user by userId in liferay from custom portlet. User : The extended model interface for the User service. Represents a row in the "User_" database table, with each column mapped to a prop...

How to read request parameters from velocity template in liferay

Hello guys, To Read request parameters in which parameters send with liferay page URL (i.e http://192.168.3.10:8080/group/dentalnotebook/patientprofile?patientId=140701) and to read from velocity template in the liferay 6.2. Below example...

How to read a page request parameter from portlet in liferay

Hello guys, Page request parameter in which a parameter send with liferay page URLwill be like i.e http://192.168.3.10:8080/group/dentalnotebook/patientprofile?patientId=140701 we can read a page request parameter in portlet controll...

How to write velocity templete in liferay

Hello guys I am writing a blog about Velocity, Which is an open source templating technology. Velocity is java technology based template engine. Here, We will take reference of objects/variable which is defined in Java code with the Veloc...

Authentication token in liferay

Liferay design a mechanism to more secure the web URLs using the authentication token. Authentication tokens type: Their are two types of Authentication tokens in the liferay. one is p_auth "Portal Authentication token" and ...
prev 1 3
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: