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
Create a simple web project in myeclipse:
(1) create a class under SRC and inherit from genericportlet. The Code is as follows:
Package COM. portlet;
(2) Create Table. jsp and the display. jsp codes are as follows:
1. Table. jsp:
2. display. jsp:
(3) download the liferay-portal-tomcat-4.2.1.zip and decompress it to the F:/liferay/tomcat directory (this is what I did on my machine)
(4) To F:/
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
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
In Liferay7, the control layer in the Portlet is split into 3 parts:1.MVCActionCommand2.MVCRenderCommand3.MVCRecourceCommandAs for why to be torn out, before we write ActionURL, a JSP may have a lot of actionurl, is to write it in Mvcportlet class, when the code is large, not easy to manage, and the structure is not particularly clear.The following is a brief introduction to the use of Mvcactioncommand, with a simple small example say Hi to U portlet1. Build a common Mvc-portlet, previously thou
After the first login, liferay generates a default private homepage layout for the user. In earlier versions of liferay, you can configure the default group layout on the system administrator management interface. However, this function is not available in version 4.1, so by default, newly registered users first see the same private place content after login, these contents are provided by
Introduction:
Now let's discuss in the article to solve Question 3: What are the special measures for cache files that already exist and do not exist.
Analysis:
Now let's take a look at the processing method if the cached file already exists.:
Because we have already created a cache file, and its base name is$ CATALINA_TMPDIR/liferay/css/portal/6476841388170400461
650) this. width = 650; "src =" http://img1.51cto.com/attachment/201308/160623788.png
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
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
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,
Release date:Updated on:
Affected Systems:Liferay, Inc. Liferay Portal 6.1.1Description:--------------------------------------------------------------------------------Bugtraq id: 56589
Liferay Portal is a complete Portal solution. It is based on J2EE applications and uses EJB and JMS technologies.
The Liferay Portal 6.1 CE GA2 (6.1.1) and other versions have
Today, I opened two liferay-portlet environments on the E drive. They were all downloaded and bound. A bundles (with tomcat in it) + plugins-sdk (with portlet-related configurations ). Every time there is a ready-made one, the Manager will give it to us and we can use it directly. Today we don't know why we can't. Once we deploy A portlet, we will say build. cannot find D: \ develop \ bundles \ tomcat-6.0.18 \ lib in xml. I don't know. I used to be ab
IntroducedLiferay provides several ways to define complex queries that are used to retrieve data from a database.Typically, in each service entity, you can easily meet basic data query operations by defining some ' finder ' methods.However, there are times when we may encounter some of the following finder queries that are not sufficient:
Overly complex queries, such as sub-queries
Some aggregation operations need to be implemented, such as Min, Max, AVG, etc.
Want a composite o
article source: www.idatafox.comSupporting Video library:Http://u.youku.com/javafacehttp://ke.qq.com/cgi-bin/courseDetail?course_id=83481Many sites are community-based, interactive, and you may have started using a separate forum, a wiki repository, or a chat program to achieve this goal, but let these standalone applications: forums, wiki repositories, or chat programs seamlessly interface to customers for a good cross-app experience, It is often difficult, fortunately, that
, these filters are defined in liferay-web.xml based on our previous research.
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/11222Q101-16.png "title =" 48.png"/>
The first time the request was/web/guest/logsearch, it matched with us. Then it took some filters and finally called invokerFilterChain. doFilter (servletRequest, servletResponse ).
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/11222V
Introduction:
Deploying a portlet in Liferay is far simpler than deploying a web application to tomcat. This article shows the secrets of this deployment.
For example, when we drop a war package of logsearchportlet in $ LIFERAY_HOME/deploy:
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/15463531P-0.png "title =" 21.png"/>
Analysis:
After this action occurs, it will be captured by the PortletAutoDeployerListener of the conta
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.