Liferay is a complete portal solution, based on the Java EE application, using the EJB and JMS Technologies, the front interface part uses the Struts MVC framework, the XML-based portlet configuration file can be freely and dynamically extended, Web services are used to support the acquisition of some remote information, and the full-text search function is implemented using Lucene.The main features are as follows:1, provide a single login interface,
Today, my colleague asked me where the Liferay framework default resource file was obtained when Maven built theme, and I compared the process of using ant to compile the deployment theme and using MAVEN to compile the deployment theme, discovering that it was a completely different strategy when replicating the framework default resource file!
ANT replication Liferay Policy for default resource files:
As
Environment Construction:Liferay-portal-tomcat-6.2-ce-ga4-20150416163831865.zip liferaytomcat ServerLiferay-ide-eclipse-windows-x64-2.2.4-ga5-201507230603.zip liferayide Development toolsLiferay-portal-sql-6.2-ce-ga4-20150416163831865.zip Liferay building a database statementLiferay-portal-src-6.2-ce-ga4-20150416163831865.zip Liferay Source PackageLiferay-plugins-sdk-6.2.zip
Liferay provides a very simple method of Web application integration and single point of login: IFRAME Portlet. IFRAME Portlet can be used to easily include an existing web application, and form post or get can be used for user login.
There is no problem with the liferay mechanism, and the implementation is also very clever. However, for many web application systems, after using the
When we create Liferay applications (such as Portlet,theme) with Maven, we often have a version choice, as shown in the figure:
The default show's last version of Archetype is selected, at which point we can only display the latest version of archetype, if we use the latest version of archetype development application, then eventually when the application deployed to the lower version of the container ( For example, the
Today, my colleagues need to switch to maven in the Liferay service builder, because Maven 6.1 is already in the archetype, so I thought it was a simple question, and I know it's been hard for me 3 hours.
The previous steps are the same, creating a service-builder archetype, as shown in the following figure:
Then, when you run the command Liferay:build-service, the following problems always occur:
Info: Global Lib directory/c:/users/asus/.m2/rep
After using liferay for a period of time, it was the first major problem in Chinese. It is said that the author is a chinese. Why didn't he consider Chinese compatibility?
The most direct problem is its Chinese translation. It seems that the author does not understand Chinese, but it also needs to rely on translation software to help translate Simplified Chinese and Traditional Chinese, sentences are literally translated by words in the English Order.
Environment Preparation:From the Internet to find some articles, often not comprehensive, not to give concrete and the like, led to find a half-day to find the real need for things, put these things listed to facilitate posterity:sdk:http://iweb.dl.sourceforge.net/project/lportal/liferay%20portal/6.2.2%20ga3/ Liferay-plugins-sdk-6.2-ce-ga3-20150103155803016.zipide:http://hivelocity.dl.sourceforge.net/projec
I. What is AuI?
The AuI framework in liferay, officially called alloy, is a UI superframework that provides continuous and simple APIs for establishing network applications in three aspects of the browser, including structure, style, and performance.
It integrates three design languages: HTML, CSS, and Java.
Accurately speaking, AuI is a liferay Extension Based on Yui to facilitate some practical applica
By default, the portletaction Extension Based on Struts action provided by liferay does not support multiple distribution commands, which are commonly used dispatchaction. However, in our daily Struts-based operations, a large number of dispatchaction processing methods have been used, such as "cmd = queryall.
This article explains how to extend liferay to support multi-distribution command actions. First,
Introduction:
Sometimes we often encounter the server paralysis after Liferay runs for a period of time. In this case, we hope to log on to the Liferay Control Panel as an administrator (Dockbar-> Control Panel-> Server-> Service AdministrationAnd then call some operations in real time, such as garbage collection. Then, we can see the updated server memory or other situations from the dashboard. What kind o
There are portlet.xml in the portlet, and we can all see the following code for security settings:
..
In fact, a lot of people including me have a question, is that some portlets even if not set
I went through the next Liferay-in-action book, and in the P154 corresponding to the 4.5 section "Programmitic Security," you can see that only when you use programmatic access control in your code (such as IsUserInRole ()), To read the
The code that
A strange problem has been discovered recently. A portlet, anonymous user access is not a problem, if the user logged on instead of a permission issue, the message shows "You do not have access to this portlet required permissions to the role."
7.1 Source Code Analysis
Try to find out the cause of the problem by analyzing the source code.
Find a resource file
You-do-not-have-the-roles-required-to-access-this-portlet= you do not have a role to access the permissions required for this portlet.
Fin
If you want to use a different database, you need to do the following.
1. Set up DBMS system, and have convenient database client for use
2. Find the appropriate JDBC driver
3. Download the Liferay database script
(Http://prdownloads.sourceforge.net/lportal/liferay-portal-sql-4.1.3.zip?download)
After you extract the compressed files, you will see three main directories: Create,portal and IndexThe script in
Record today Liferay project from ant Switch to maven lesson.
For tomorrow's demo, we've switched all the Liferay projects that were built with Ant to Maven, and the results are not always visible when deploying a theme application built by MAVEN to a Liferay server. I worked for half an hour, only to find out why, because _diffs the following content is not cop
A typical portlet should have the following structure:
Source code files:
Java source code is stored in the
Configuration file:
Configuration files are in the
Portlet.xml is a JSR-286-related configuration that acts as a deployment profile for a portlet
The remaining 3 configuration files are related to Liferay:
Liferay-display.xml file shows which category the Portlet is under in the Add menu
T
Having used to use velocity, I encountered a problem in Porting previous Turbine-based programs to liferay4.0rc, which had plagued me for many days. Today, I finally completely solved the problem, which is summarized as follows: 1. liferay uses COM. liferay. util. velocity. multipleresourceloader to load VM files. The setting of this loader is in COM. liferay. po
Introduction to Liferay Portal
Liferay is a complete portal solution based on the Java EE architecture, using the EJB, JMS and other technologies, the foreground interface using the Struts MVC Framework, template technology and other open source mainstream technology, xml-based portlet configuration file can dynamically expand, using the W EB Services To support the acquisition of some remote information,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.