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
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
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
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
Phenomenon:
Today, my colleague asked me a question, that is, he built a portlet for the MAVEN project, named Inter-portlet-communication-test, and then maven packs the $liferay_ There's one more file called Inter-portlet-communication-test-0.0.1-snapshot.war,
But when run, the widget's directory name under Tomcat's WebApp is always inter-
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
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
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
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
Unconsciously, I have been in the United States for more than two months. In the face of over 120 hours of work per Sprint, I have no energy to maintain my blog, so it is not updated in 2 months. Now, on Labor Day in the United States, let's take a look at my learning experience during this time.
This topic describes how to use the tarball distribution package to automate Liferay installation and deployment.
Purpose:
As we all know, the process of d
We see this article is not very happy ah, I feel is very happy, we can finally follow their own wishes to write a code, in Liferay some basic additions and deletions of the code is automatically generated, but we want to achieve their own method, I am afraid that a little effort, You have to know that every technology is necessary to study and learning, not always feel that the automatic generation of things do not have any good research, in fact, you
The problem is that Websphare, Servletcontext.getcontextpath () Gets the value "/" rather than the empty string.The following code is in the/portal-master/portal-impl/src/com/liferay/portal/spring/context/portalcontextloaderlistener.java file:if (Serverdetector.iswebsphere () _portalservletcontextpath.isempty ()) { = Stringpool.blank;}Modified to:if (Serverdetector.iswebsphere () (_portalservletcontextpath.isempty () | | _portalservletcontext
The general solution to the continuous repetition of the submission of the following methods.
Method A, commit after the submit button is disabled (most people do this)Method II, the use of Session, the second part of the token, set a value for the first time, after the request to the first and this token to compare;Method three, data processing success immediately redirect to another page
Liferay in the foreground uses the client script (may be jquer
It is very easy to get the portal site to use its own theme (subject) in Liferay, as follows:
(1) In Dock-bar, select Manage->page Layout->look and Feel
(2) then select "Define a specific look and feel for this page"
(3) then select our custom theme (for example, we developed a theme named Demo-theme and have deployed it to the Liferay server)
(4) Finally save, close the pop-up window, refresh the pag
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
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.