Liferay tutorial LEARNOVITA

Liferay Beginner’s Guide Tutorial | Quickstart – MUST- READ

Last updated on 09th Aug 2022, Blog, Tutorials

About author

Sriram (Liferay Developer manager )

Sriram is a Liferay Developer Manager, and he mastered running applications while providing training in Liferay DXP, REST API, and XRM WebApi to the students. He is a certified professional with 7+ years of experience in their respective domains.

(5.0) | 18574 Ratings 2166

Liferay Theme is a web application, which assists you with fostering a graphical appearance for the entryway pages. It contains a bunch of FreeMarker layouts, JavaScript and CSS, design, and assets/pictures records. With a topic, you can characterize both the construction for your page (header, footer, content region, and so forth) and its styling. You can likewise set up various arrangement choices with shading plans and comparing settings, carry out responsive plans, give personalization includes, or even import expected assets to the gateway with a topic.

Fortunately, the stage as of now thinks of a bunch of underlying subjects that you can use for your entry. In any case, assuming you’re going to make a site, you clearly need to have a special and excellent plan to make your site stand apart among the remainder of the contenders. That is the reason it’s truly essential to put resources into a topic, and that is the reason pretty much every Liferay project begins with a DXP subject turn of events.

Required instruments and devices for Liferay subject turn of events:

At the point when you’re assembling the exterior of a house or some other design piece, you require the most effectively working toolbox that will address every one of your issues perfectly. At the point when you’re going to make a custom subject in Liferay without any preparation, you’ll require an extraordinary innovation stack to acquire a helpful plan. I propose you investigate the rundown of the accompanying instruments and apparatuses that will assist you with making, creating, and sending your own subject.

Coordinated improvement climate (IDE): you might utilize any one you like, yet I’d suggest IntelliJ IDEA.

Java: as Liferay is a Java-based entry, you want Java to be introduced. Its most recent form (7.3) requires Java adaptation 8+.

Liferay Workspace – the climate to oversee projects made on this stage. Hub Package Manager (npm).

Liferay Theme Generator – hub bundle, that permits you to produce new topics. Yeoman-a web platform device.

Swallow – task sprinter that allows you to computerize advancement assignments. IDE Liferay work area and group setup.

To begin making a custom topic in Liferay 7, we really want to set up the climate first: set up the IDE and Liferay work area, and arrange the Liferay pack.

What is Liferay?

Liferay is an open-source Enterprise programming advancement stage in view of current J2EE innovation. It is a main Portlet holder that is utilized for making a norm, adaptable, and venture web application.

This Portlet innovation follows JSR 168 and JSR 286 objections, including numerous portlets, and each portlet has its reaction and solicitation.

It sends a solicitation and gets a reaction from the server; then, at that point, the reaction has a place with the entry just that sends the solicitation.

The Liferay entry incorporates a bunch of portlets and is utilized to fabricate a web application and create a new portlet application. It has a system and norms to add another element and modify the current gateway.

Liferay has two kinds of entries.

1. Liferay Community Edition

Liferay Community Edition is an open-source entrance and can get source code to add or alter the application. It incorporates a fantastic working gathering and local area individuals and permits clients to contribute their work to the Liferay people group.

2. Liferay Enterprise Edition

Liferay Enterprise Edition is a paid gateway that has a venture grant from Liferay Inc. It incorporates a few benefits over the Liferay Community Edition.

For what reason should organizations utilize Liferay?

Liferay is a dynamic and profoundly adaptable stage where intuitive sites and venture entrances are made. Liferay DXP incorporates a few capacities called portlets that offer broad help for different programming dialects like C++, .NET, Java, PHP, and so forth.

Liferay instrument incorporates more than 60 portlets, and these portlets are accessible with the drag-and-send include.

The equivalent portlet can be utilized for different sites by a solitary client.

It can work utilizing HTML5, CSS, XHTML, and a large group of other plan strategies. It gives UI/UX similarity with its intuitive element used to move various substances in the portlets.

It offers novel work process APIs for an incredible client experience and permits clients to make and apply work processes with custom substances.

Liferay is a Java-based stage, and it is not difficult to execute the application utilizing various assets accessible on the lookout.

It permits clients to customize the online interfaces and site pages and effectively permits a hearty Enterprise Content Management System to Add/Remove/Edit the substance on sites and entries.

It permits clients to incorporate current and existing innovations like Spring, Hibernate, JBoss, and other such information bases.

Highlights of Liferay

Hightlights Of Liferay

The highlights of Liferay ar as per the following:

Liferay could be a programming purpose of interaction for Java designers, and managers will introduce the positioning while not having specialized data.

It offers broad facilitation for various stages, for instance, records, documents, bookmarks, online page, wiki pages, sites, and so on.

The director or shopper will alter, add, and redo Liferay’s portlets’ ascribes while not adjusting the organization information set.

It offers AN improved on program for numerous purchasers and permits purchasers to utilize a solitary show layer for all organizations.

It empowers purchasers to induce to the appliance by work through the Secure Single Sign-On to coordinate with numerous end-clients frameworks.

It provides a solitary snap arrangement with the goal that everyone will utilize the advantage of a fast program.

It offers a bunch of execution attending to apparatuses to the supervisor.

It permits purchasers of the simplified component to maneuver completely different substances of entrances.

Liferay permits purchasers to create the work method consistent with the purposeful requirements and offers work method arthropod genus for a superior shopper expertise.

Download Liferay:

To transfer Liferay, follow the below steps and guarantee that you just have introduced the Liferay approach and went through the Eclipse.

    1. 1.Utilize the association to transfer the new sort of Liferay Portal.
    2. 2.Separate the compressed document into the catalog.
    3. 3.Restart the Eclipse and guarantee that you will just characterize the new Liferay Server.
    4. 4. Click Next and separate the Liferay record to examine them.
    5. 5. Click Next and end.
    6. 6. From the Servers sheet, begin the server.
    7. 7. Delay till the server begins and opens the program.
    8. 8. Fill within the subtleties and snap end Configuration.
    9. 9. A message shows au courant a fruitful style and snaps move to My Portal.
    10. 10. Acknowledge the terms and Enter the required Login qualifications and snap save.
    11. 11. A Liferay Dashboard shows au courant the screen.

Liferay Eclipse Plugin:

To make a Liferay Portlet, an associated Eclipse Plugin should be introduced. It assists you with creating a Liferay Portlet aboard the properties to convey.

To introduce Liferay Eclipse Plugin, do the concomitant advances.

In the Eclipse IDE facilitate menu, choose Install New software package.

Add the foremost recent Liferay devices connected with begin operating.

Click Next and settle for the agreements.

Click end.

Liferay module is employed to urge associate illustration of Liferay JSF Portlet and provides a good scope of Liferay Portlet sorts and holders. to create a Liferay Portlet, do follow the means that beneath.

    1. 1. In Project someone, right-click thereon and choose New from the summation.
    2. 2. within the Liferay, choose Liferay Portlet from the menu and snap Next.
    3. 3. Overshadow inquiries on whether or not you wish to open the new Liferay Plugin Project wizard, answer yes. It empowers you to create the Liferay Portlet as a Liferay Plugin.
    4. 4. The New Liferay Plugin Project window opens, filling within the subtleties needed.
    5. 5. Click produce New superstar Profile contingent upon the Liferay Runtime that’s on the point of the Active Profiles input.
    6. 6. Click Next and choose the portlet structure JSF two.x.
    7. 7. Click Next and choose the JSF element suite, empower JSF normal.
    8. 8. Click end.

Database Design:

Information base set up could be a set up that shows the subtleties that are placed away within the knowledge set. as an example, associate worker table, as displayed within the figure.

What’s a lot of you may truly wish to form associate databases with SQL inquiries.

Representative Model

Representative Model could be a model that’s characterized to pass the data just like the customary Java category.

Overseen Bean

According to the JSF, the overseen bean is used to modify the show explanation that implants the read. For example, a representative ought to be saved over our knowledge set; the overseen bean has delineated a register observer strategy obligated for saving the worker. This can be the JSF execution obligation, so it ought to zero in on the business conditions as against partaking with specially appointed work.

JSF View

JSF View

We have a solitary read in control of getting into representative’s subtleties and advise them within the event that the activity was finished or clothed badly.

The nitty gritty portrayal of the code ought to incorporate the incidental to.

Worker’s symbol is required; within the event that you just compel it, the structure can tell you.

The symbol needs to incorporate a bunch of numbers.

A representative’s earnings is needed, and it even features a bunch of numbers.

Representative’s earnings need to be 2-4 digits.

Messages can assist you with obtaining truth with the activity.

Register submit activity offers you to send the entered knowledge to be saved.

EmployeeDAO and information Utility.

EmloyeeDAO and association utilities are utilized along with taking care of all the database assignments. it’s in control of saving a representative once the database accessibility is proscribed by association Utility.

Registration Demo

This meeting assists you with aiming to Liferay Portal and run utilizing your login certifications within the Dashboard.

Extend the dropdown that’s adjacent to your name and choose My Dashboard from the summing up.

The Dashboard permits the consumer to feature, eliminate, and regulate the Portlets. The and button permits you to feature the portlet.

Drag the Portlets into the dashboard.

After you decide to give a vacant structure, a mistake message can inform you of what was clothed badly and also the inclusion conditions.

Along these lines, fill within the necessary subtleties and decide to enlist.

Lastly, you’ll be able to see the representative listed within the database.

Conclusion:

By closing, Liferay has devices utilized in 3 conditions, as an example, the order line climate, which contains with numerous devices, Easy-to-utilize Liferay IDE that diminishes the expectations to find out and adapt, associated expert climate is an embraced project the executives framework. During this tutorial exercise, we’ve taken within the essential comprehension of Liferay, the way to build Liferay Plugin Portlets and come, and also the blessings of utilizing Liferay. To accomplish high to bottom data on Liferay, investigate our Liferay coaching programme at once.

Are you looking training with Right Jobs?

Contact Us

Popular Courses