We often encounter problems with fast sharing between Liferay sites, porting site settings, and configuration.
Requirements Analysis:
For example, I Liferay site 1 has been configured a lot of pages, logos, resources, icons, navigation and so on. Now that I have another site of 2, I want to be able to have all the settings for Site 1 ported to site 2. The more stupid method must be to use Administrator ac
Session
Ii. the realization of Liferay
Liferay when building Actionrequestimpl and Renderrequestimpl, a portlet session is set, as shown in the following code: public Renderrequestimpl ( HttpServletRequest req, Portlet portlet, cacheportlet cachePortlet, Portletcontext portletctx, WindowState WindowState, Portletmode portletmode, PortletPreferences Prefs, String layoutid) { ... _req = Dynamicreq;_portlet
Today, the UI group has a need to change the default header of Liferay to a custom header and use Ext-js to show the effect of the dynamic header, so we think of the function of using the Liferay hook.
Show effect
Initial state:
When the mouse wheel rolls down, the header is indented to a horizontal bar:
When the mouse wheel scrolls up, the header reverts to its original state:
Realize:
To achie
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 Liferay the request is divided into renderrequest and actionrequest the two kinds of requests, Portletrequest subclass has three 1renderRequest, 2eventrequest3clientdatarequest. Is there no actionrequest? , not the Actionrequest inherited is clientdatarequest this interface.The scope of Actionrequest is the portlet during the action processing phase, at which point the portlet does not know what it is going to display or how to display it.The scope
There are many ways to implement Single-point login (SSO). Here we use cas, which is also the method adopted in liferay. As for what cas is and how single-point login is implemented, I will not explain it here (read the article I have reproduced). I will explain the implementation method step by step, I don't need to talk about anything more.
Step 1: Create a certificate
Keytool-genkey-alias tomcat-keystore c: \ mykeystore-dname "cn = xyb, ou = localh
Please attach the original link of the great GodAdding Dependencies to JSP Fragment BundlesIn the process of developing liferay, we often use the module fragment to modify the original JSP page Liferay, while modifying the original page, we also want to add their own logic, coupled with some Java code, how to do it?Take a pit first, fill it later, enclose the code address https://github.com/JoyeLuo/jsp-frag
Liferay The default is not to turn on tuning parameters, so run slower, we can open some parameters to achieve better performance:
Today I did the following configuration:
(1) The following parameters are configured in the $liferay_home/portal-ext.properties:
Last.modified.check=false
Theme.css.fast.load=true
Javascript.fast.load=true
(2) We've disable all the filters in the $liferay_home/
(3) We disable all the infrequently used portlets in
,\
Meta-inf/ext-hbm.xml
In each node, copy the Portal-hbm-new.xml from the attachment to/root/web-inf/classes/meta-inf/folder.
Reason for this solution:
When we add "Basic Document" to created folder in Control Panel, the Liferay system'll do the following tasks:
You can read my article http://supercharles888.blog.51cto.com/609344/921761 for the very detailed analysis process.
A. Add a entry in "dlfileentry" table to stand for the
As we all know, in the Web application, in order to save network overhead, often a number of small JS files into a large JS file, bar a number of small CSS files into a large JS file, so that the original N small file request can be merged into a single network request. The most typical tool for doing this is the famous yui-compressor.
In fact, in the Liferay, we in order to achieve the purpose of merging Css,js, with a different approach to yui-comp
We already know a lot of kinds of processing file upload code, more typical such as Apache famous FileUpload, of course, Liferay for us have considered, we can use Liferay upload files with the API to deal with file upload problem, This core interface is the Com.liferay.portal.kernel.upload.UploadPortletRequest interface.
For the simplest example, we're going to upload a file into the portlet on the Portle
As we all know, Liferay's core framework consists of a set of velocity template files located in the $liferay_home\liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\webapps\root\ Html\themes\classic\templates Directory, some colleagues today asked me where the variables in these templates are defined.
In order to solve this problem, we found the Portal-impl.jar in the Velocityvariableimpl class file, so at a glance. Because the first line in PORTAL-NORMAL.VM
We can develop theme to let the system not use the default style.
When we create a theme project with the wizard and compile it, the project structure is shown in the following illustration:
where all the docroot below the _diffs directory are liferay from the default copy of the resource file. All we need to change is to build a parallel directory under the _diffs directory.
Example 1, change the page or style sheet:
For changes to the page and
Conclusion:
When you log in with an administrator in Liferay, navigate to Control Panel->documents and Media, and add basicdocument under the specified folder, the server does the following things:
(1) Add a record to the Dlfileentry table to represent the added document.
(2) Add a record in the Dlfileentryversion table and associate it to the Dlfileentry table through the Fileentryid foreign key to record the version information of the newly added
Document directory
1. Determine whether the user has logged on to liferay. The corresponding model user _
2. Load the static resource file barebone. jsp, everything. jsp
3. i18n
1. Determine whether the user has logged on to liferay. The corresponding model user _
User user = portalutil.Getuser(Request );2. Load the static resource file barebone. jsp, everything. jsp
When loading JS files,
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.