Liferay Beginner’s Guide Tutorial | Quickstart – MUST- READ
Last updated on 17th Jan 2022, Blog, Tutorials
- Required instruments and devices for Liferay subject turn of events
- Why Spotfire?
- What is Liferay?
- Highlights of Liferay
- Download Liferay
- Liferay Eclipse Plugin
- How to make a Liferay Plugin Project and Portlet?
- Information base Design
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:-
- 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.
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, create, and send your own subject.
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 that intuitive sites and venture entrances are made. Liferay DXP incorporates a few capacities called portlet 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 process 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 with current and existing innovations like Spring, Hibernate, JBoss, and other such information bases.
Highlights of Liferay
- Liferay is a programming point of interaction for Java designers, and managers can introduce the site without having specialized information.
- It offers broad help for different stages, for example, records, documents, bookmarks, web content, wiki pages, sites, and so on.
- The director or client can alter, add, and redo Liferay’s portlets’ ascribes without adjusting the organization data set.
- It offers an improved on User Interface for various clients and permits clients to utilize a solitary show layer for all organizations.
- It empowers clients to get to the application by logging through the Secure Single Sign-On to coordinate with various end-clients frameworks.
- It gives a solitary snap arrangement with the goal that everybody can utilize the advantage of a quick User Interface.
- It offers a bunch of execution getting to apparatuses to the overseer.
- It permits clients the simplified element to move different substances of entrances.
- Liferay permits clients to make the work process according to the functional necessities and offers work process APIs for a superior client experience.
The highlights of Liferay are as per the following:
Learn Liferay Certification Training Course to Build Your SkillsWeekday / Weekend BatchesSee Batch Details
- 1.Utilize the connection to download the new form of Liferay Portal.
- 2.Separate the compress document into the catalog.
- 3.Restart the Eclipse and guarantee that you can characterize the new Liferay Server.
To download Liferay, follow the underneath steps and guarantee that you have introduced the Liferay entryway and went through the Eclipse.
- 4. Click Next and separated the Liferay record to peruse them.
- 5. Click Next and Finish.
- 6. From the Servers sheet, start the server.
- 7. Delay until the server begins and opens the program.
- 8. Fill in the subtleties and snap Finish Configuration.
- 9. A message shows up on a fruitful design and snaps Go to My Portal.
- 10. Acknowledge the terms and Enter the necessary Login qualifications and snap save.
- 11. A Liferay Dashboard shows up on the screen.
Liferay Eclipse Plugin:-
- To make a Liferay Portlet, an Eclipse Plugin must be introduced. It assists you with making a Liferay Portlet alongside the properties to convey.
- To introduce Liferay Eclipse Plugin, do the accompanying advances.
- In the Eclipse IDE help menu, select Install New Software.
- Add the most recent Liferay devices connect to begin working.
- Click Next and Accept the agreements.
- Click Finish.
How to make a Liferay Plugin Project and Portlet?
Liferay module is utilized to get an illustration of Liferay JSF Portlet and give a wide scope of Liferay Portlet types and holders. To make a Liferay Portlet, do follow the means underneath.
1. In Project Explorer, right-click on it and select New from the rundown.
2. In the Liferay, select Liferay Portlet from the menu and snap Next.
3. Overshadow inquires as to whether you need to open the new Liferay Plugin Project wizard, answer yes. It empowers you to make the Liferay Portlet as Liferay Plugin.
4. New Liferay Plugin Project window opens, fill in the subtleties required.
5. Click Create New Maven Profile contingent upon the Liferay Runtime that is close to the Active Profiles input.
6. Click Next and select the portlet structure JSF 2.x.
7. Click Next and select the JSF Component suite, empower JSF standard.
8. Click Finish.
Get JOB Oriented Liferay Training for Beginners By MNC Experts
- Instructor-led Sessions
- Real-life Case Studies
Data Base Design:-
Information base plan is a plan that shows the subtleties that are put away in the data set. For example, an Employee table, as displayed in the figure.
What’s more you will actually want to make an information base with SQL inquiries.
Representative Model is a model that is characterized to pass the information like the customary Java class.
According to the JSF, the oversaw bean is utilized to deal with the show rationale, which implants the view. For instance, a representative should be saved over our data set; the oversaw bean has described a register Listener strategy obligated for saving the Employee. This is the JSF execution obligation, thus it should zero in on the business prerequisites as opposed to engaging with specially appointed work.
- The nitty gritty portrayal of the code should incorporate the accompanying.
- Worker’s Identifier is required; in the event that you prohibit it, the structure will tell you.
- The identifier ought to incorporate a bunch of numbers.
- A representative’s Salary is required, and it even has a bunch of numbers.
- Representative’s Salary ought to be 2-4 digits.
- Messages will assist you with getting told of the situation with the activity.
- Register submit activity offers you to send the entered data to be saved.
We have a solitary view answerable for entering representative’s subtleties and advise them in the event that the activity was finished or turned out badly.
EmployeeDAO and Database Utility
EmloyeeDAO and association utilities are utilized together for taking care of all the information base assignments. It is answerable for saving a representative when the information base availability is dealt with by Connection Utility.
- This meeting assists you with getting to Liferay Portal and run utilizing your login certifications in the Dashboard.
- Extend the dropdown that is adjacent to your name and select My Dashboard from the rundown.
- The Dashboard permits the client to add, eliminate, and adjust the Portlets. The Plus button permits you to add the portlet.
- Another sheet has been seen, and a bunch of tabs are shown. Drag the Portlets into the dashboard.
- At the point when you attempt to present a vacant structure, a blunder message will inform you of what turned out badly and the inclusion prerequisites.
- Along these lines, fill in the necessary subtleties and attempt to enlist.
- Lastly, you can see the representative enrolled inside the information base.
By closing, Liferay has devices utilized in three conditions, for example, the order line climate, which incorporates with various devices, Easy-to-utilize Liferay IDE that diminishes the expectations to learn and adapt, and Maven climate is an embraced project the executives framework. In this instructional exercise, we have taken in the essential comprehension of Liferay, how to make Liferay Plugin Portlets and Projects, and the advantages of utilizing Liferay. To accomplish top to bottom information on Liferay, look at our Liferay Training educational program right away.