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
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:/
query speed will be faster, and the system will be able to bear a large load. Many large companies are using this technology, such as Google, Facebook, and Wikipedia.
What is the implementation policy of Liferay?
Liferay implements distribution based on the Portal Instance, that is, the data of different portal instances is stored in different databases. The data of the same portal instance is only in on
From: http://www.theserverside.com/news/thread.tss? Thread_id = 39830
Liferay has released liferay portal 4.0, which brings a revamped fine-grained security model, enterprise taxonomy, delegated and cascading permissions and administration, public and private pages, JSR-170 compliance via jackrabbit integration, and page-level themes to the popular open-source portal application.
The latest version of lifer
Finally, I found the official documentation. Generally, the search engine seems to be unable to find the lifeary developer mode and developer. I have always wanted to switch to the development mode, but I don't know how to switch it. After reading the documentation, it is actually very simple.
You can debug front-end JS after enabling it. This is very useful.
Do you want to develop liferay resources without having to redeploy to see your portal modi
When we use to build a Nexus local warehouse, and configure Settings.xml to enable this repository for applications. We use the archetype of Liferay 6.1.10 to create the Liferay portlet, as shown in the following figure:
When we run the command MVN package Liferay:deploy, the following error occurs:
01.[debug] Using connector Wagonrepositoryconnector with priority 0 for http://192.168.129.35:8080/nexus-
In Liferay Enterprise, the use and control of license is very exquisite, because the lincense determines the use of products and the use of the term, we are now to in-depth analysis of the license.
Deployment of License:
First of all, back to listener, see http://supercharles888.blog.51cto.com/609344/907286 Blog said, in the Liferay mainservlet startup process, when dealing with the global startup event ,
After several days of searching through the Liferay, the answers were found in the forums of the forum, hoping to help friends who are interested in deploying JPBM workflows in Liferay. 1. First download Liferay Portal Professional 4.2.1 (Bundled with Tomcat for JDK 5.0)
2, use its default Hsql database, that is, not to change its database configuration.
3. Dow
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
Brief introduction:
It is well known that cross-domain problems are a very common requirement, such as having a client's EXT-JS control render a JSON object from the server side. We can solve them in many ways, such as JSONP. However, in Liferay, we can use the Serveresource method to gracefully resolve Cross-domain access issues.
Whiteboard Analysis:
Here is the whiteboard on the technical symposium:
Workaround:
First write a Serveresource met
In Liferay, if you can use good portletpreferences then it will be very powerful:
Brief introduction:
Portletpreferences is a combination of a set of information related to the current user, and we can allow a logged on user to share data through this portletpreferences on different pages of a portlet, at different stages, Without having to worry about other users stealing the data. The benefit of using this shared data is that it does not require s
Recently our team asked Liferay to do the front page tuning, of course, the evaluation tool is the most important, in order to see the specific page loading time and so on, our first choice of course is the Chrome Browser diagnostics tool, but the total feeling is not professional, based on my experience, I still recommend YSlow, it The index of the page will be graded, and then finally get the total score then rating, General level has A,B,C,D,E,F6 l
In the Liferay Control Panel, when you click the search user in the user panel:
The requests sent to the server are as follows:
Based on the configuration in Struts-config.xml, we find forward that match struts-action to/user_admin/view_users:
Then go to tiles-def.xml and find the page that matches forward for Portlet.users_admin.view:
So, we found the page is/portlet/users_admin/view.jsp:
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
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.