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
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
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,
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
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
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.