Writing a Liferay MVC Application

A popular way to develop Liferay applications is to use the Model View Controller (MVC) pattern. If you’re a battle-tested developer, you’re likely familiar with MVC. To make things simpler, Liferay has developed its own MVC framework. You might now be thinking, “Simpler? How does yet another MVC implementation make things simpler? I’m tired of redundant frameworks!” Liferay’s MVC framework, however, provides many time-saving benefits that streamline Liferay development. Unlike many Java MVC implementations, it’s a lightweight framework. It also hides part of the complexity of portlets and makes common operations easier. What’s more, Liferay’s own developers use it to develop portlets. This means there are many robust examples to reference when you need to design or troubleshoot your applications. Liferay also provides tooling that makes creating Liferay MVC applications a snap. You’ll quickly find that learning and using Liferay MVC saves you time over trying to implement your application with a different MVC implementation.

Here, you’ll use Liferay MVC to develop a Liferay portlet from start to finish. This includes installing Liferay’s development tools, generating your persistence layer, integrating with Liferay features like search and indexing, generating remote services, and much more.

Beginning Liferay Development

If you’re just getting started with Liferay development, Liferay’s learning paths are for you. We start at the beginning: installing a Liferay development environment. Though you can use anything...

Read More

Writing a Data-Driven Application

One of the most common ways to store data in an application is to use a database. If you’ve followed the introductory learning path, you learned how to write a Liferay application using only the...

Read More

Setting Permissions

Storing your data in a database is really only the first step in creating a full-blown, data-driven application. Once the data is there, most of the time you’ll want to make sure that some of that...

Read More

Creating Entity Actions

So far, you’ve created a Guestbook application that uses a database to store its entries. This application is integrated with Liferay’s permissions mechanism, allowing you to control who has access...

Read More

Adding a Portlet to the Control Panel

Up to this point, you’ve created a fully-functional Guestbook portlet. You’ve written a service.xml file to define your application’s data model and used Service Builder to generate back-end code...

Read More

Enabling Search and Indexing

Now you have a working Guestbook portlet as well as a completed Guestbook Admin portlet. The Guestbook portlet allows users to create guestbooks and to add, edit, configure permissions for, and...

Read More

Asset Enabling Custom Entities

Liferay’s asset framework provides a set of features that are common to many different types of content. Web content articles, blog posts, wiki articles, and documents are a few examples of Liferay...

Read More

Using AlloyUI in Your Application

AlloyUI is Liferay’s user interface framework. While you can use any framework to develop a user interface for your application, AlloyUI is an excellent choice since it’s already used by the...

Read More

Making URLs Friendly

You’re probably feeling good about the Guestbook Portlet now. The UI is looking snazzy, it has front- and back-end validation, and you’ve implemented several other features that a modern app should...

Read More

Approving Content with Workflow

In any application that accepts user created content, it’s important to have an approval process for publishing that content. Review and approval might be necessary for a number of reasons:...

Read More

Creating Web Services for Your Application

In this learning path, you’ll use Service Builder to create remote web services for the Guestbook application. When you’re finished, authorized clients, such as mobile devices, will be able to...

Read More
0 (0 Votes)
Introduction Previous