CRM Application Status
CRM was a fierce competition, and CRM was displaced. Gartner said Sibel. To put it bluntly, it's all about bypassing the CRM circle. CRM was originally a customer relationship management. Where did we put our customers? So I have to talk about the app
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
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,
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,
Introduction:
You may not be familiar with UrlRewriteFilter. Especially those who have done SEO (Search Engine Optimization) know that it will rewrite a url to another URL. Why? Because the search engine looks at dynamic URLs very uncomfortable. What is dynamic URLs? Associate queryParameter, associate parameters with such URLs, suchHttp: // 1.2.3.4: 3333/badurltest? A = 1 B = 2 c = 3This url. We will change it to a static url after rewriting, suchHttp: // 1.2.3.4: 3333/badurltest_1_2_3.htmlI
Introduction:
The project team asked me if A Portlet has multiple modes, for example, a previously developed portlet has both the view mode and the config mode), and the front-end uses the extjs mvc Architecture, and the main file is main. js, the main. js is defined in liferay-portlet.xml with the following
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/11140J4b-0.png "title =" 31.png" alt = "091752436.png"/>
So it is imp
In the portlet, the request is divided into two types of Renderrequet and actionrequest and the portlet needs to get the instance ID when it is renderrequest to be taken, the following examplePortletpreferences preferences = Renderrequest.getpreferences (); String Portletresource = paramutil.getstring (Request, "Portletresource"), if (Validator.isnotnull (Portletresource)) { Preferences = Portletpreferencesfactoryutil.getportletsetup (request, Portletresource);} Where Portletresource is the ID o
In Liferay, if we want to have permission control on the page, such as if only the user with the specified permission can see something, we can use the Liferay predefined user object to get the permissions that the object has, and then control the display of the page.
In order to use the user object on the Liferay page, we must join the tag library:
We can th
By default, a portlet can have only one page, and if you need more than one portlet on a page, you need to instantiate the portlet. After instantiation, Liferay assigns to each instantiated portlet a instance ID to differentiate the same functionality. The instance IDs of multiple identical portlets in a page are different, and the same portlet's instance ID is not the same for different pages. This makes it possible to develop implementations with th
Liferay's own database is very mini, generally is to play.In the real development process, we often need to connect it to our local database.There are 3 ways, and I'm just going to introduce my favorite method here. Even MySQL.1. Create the portal-ext.properties file in the root directory of the Liferay portal, where the contents are Jdbc. default. driverclassname=com.mysql.jdbc.Driver jdbc. default. Url=jdbc:mysql://Localhost/lportal?useunicode
Introduction:
For debugging purposes, most people will set css_fast_load to 0, so that they can see the loading of each separate css style file. On the product server, in order to speed up, if this parameter is set to 1 and multiple css files are merged into a single file, what is the mystery of this?
Debugging analysis:
Taking advantage of the free time on the last day of Sprint, I was lucky enough to analyze the Liferay source code and find out the
Iii. ProblemsDue to the above reasons, liferay may face the following problems:-The user originally wanted to save the private data to the session of the application, but actually saved it to the session object of the portal system.-Other applications can freely access session data that does not belong to this application.-Other systems can access the session data of the portal system at will.-Different applications cannot use the same key to store da
Part 1: Click the "ADD" process from the page to find the event handler function:
In Liferay, when we select a portlet from the left and add it, a series of actions are triggered and the portlet is eventually displayed on the page, and now we are spy the mysterious process.
On the page, in order to find the event handler we bound after clicking Add, we first find this code corresponding to the JSP page in/html/portlet/layout_configuration/view_cat
When clicking on the DockBar on the Add->more ... , he entered the layout_configuration:
This is also a portlet (a special portlet in the Liferay kernel), portlet_id 87, see Liferay-portlet.xml:
The page corresponding to this portlet is in/html/portlet/layout_configuration/view.jsp:
Primay key Field
There are four ways to create the primary key:id-type= "class": In the use of a class to generate the primary, works for all Si Tuations id-type= "increment": Works for all databases supported but not in a clustered enviroment id-type= "identity": Wo Rks for DB2, MySQL, and MS SQL Server. Id-type= "id-type=" sequence "id-param=" id_sequence ": Works for DB2, Oracle, PostgreSQL, and SAP DB. Also LIFERAY-SERVICE-BUILDER_5_0_0.DTD
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.