Liferay Code Analysis and extension--User Service
Reprint please retain the author information:
Author: 88250
blog:http:/blog.csdn.net/dl88250
MSN Gmail qq:dl88250@gmail.com
Directory
Summary 1
Environment 1
Import Project 1
User Service Analysis 3
User Service Extension 3
Problem Description 4
Solution Analysis 4
Solution 1 4
Solution 2 4
Final Scenario 4
Step 4
Summary 8
Summary
See a few days liferay,
Original: http://www.huqiwen.com/2012/10/24/liferay-6-1-development-study-12-file-upload/
Liferay provides a complete file processing, starting from Liferay 6.1 in the processing of files, no longer distinguish between documents and pictures, unified as a file Media library. In the common Portlet plug-in project, if you want to upload files to the
After using liferay for a period of time, it was the first major problem in Chinese. It is said that the author is a chinese. Why didn't he consider Chinese compatibility?
The most direct problem is its Chinese translation. It seems that the author does not understand Chinese, but it also needs to rely on translation software to help translate Simplified Chinese and Traditional Chinese, sentences are literally translated by words in the English Order.
Ionic hiding tabs method, ionic hiding tabs Method
This article shares with you the ionic hidden tabs Method for your reference. The specific content is as follows:
1.
2.Add. directive under the controller:
var module = angular.module('app.directives', []);module.directive('showTabs', function ($rootScope) { return { restrict: 'A', link: function ($scope
This is due to the tabs of the href overload, so we need to change the href to a different custom property to avoid this problem.Here's how to fix it:First step page End:Start of the loop bodyEnd of Loop body----Change href= "@n.url" to: ghref= "@n.url"After the change:Start of the loop bodyEnd of Loop bodyThe second step JS end:function Initleftmenu () {$ ('. Easyui-accordion li a '). Click (function () {var Tabtitle = $ (this). text ();var url = $ (
Liferay has two types of services:
1) Internal ServicesLiferay core services, such as portal-impl.jar
2) External ServicesThat is, portal APIs, such as portal-kernel.jar and portal-service.jar
The liferay internal service is updated frequently. Pay special attention to the liferay version upgrade. The liferay external
Environment Preparation:From the Internet to find some articles, often not comprehensive, not to give concrete and the like, led to find a half-day to find the real need for things, put these things listed to facilitate posterity:sdk:http://iweb.dl.sourceforge.net/project/lportal/liferay%20portal/6.2.2%20ga3/ Liferay-plugins-sdk-6.2-ce-ga3-20150103155803016.zipide:http://hivelocity.dl.sourceforge.net/projec
Liferay is a complete portal solution, based on the Java EE application, using the EJB and JMS Technologies, the front interface part uses the Struts MVC framework, the XML-based portlet configuration file can be freely and dynamically extended, Web services are used to support the acquisition of some remote information, and the full-text search function is implemented using Lucene.The main features are as follows:1, provide a single login interface,
Today, my colleague asked me where the Liferay framework default resource file was obtained when Maven built theme, and I compared the process of using ant to compile the deployment theme and using MAVEN to compile the deployment theme, discovering that it was a completely different strategy when replicating the framework default resource file!
ANT replication Liferay Policy for default resource files:
As
This article mainly introduces JS Code for implementing the sliding menu effect. It provides tabs, tabs, and horizontal effects in the form of examples, which is very simple and practical, for more information about how to use JS to implement the sliding menu, see the following example. Share it with you for your reference. The details are as follows:
Here, we implement a special effect to centralize the
This is what I learned today, slowly accumulate, refuelingclass="Easyui-tabs"Id="Tabsall"style="width:900px; height:600px">"Cooling"Id="Leng">"Timebegin" class="Easyui-datebox">"Timeend" class="Easyui-datebox">class="Easyui-linkbutton"> Enquiry "AA" class="Easyui-tabs"style="width:890px; height:500px">"Chart"Id="BBB">"Data">"Statistics">"Show">$. Get ("aa.html", function (data) {$ ("#bbb"). HTML ( (data);})
This is due to the tabs of the href overload, so we need to change the href to a different custom property to avoid this problem. Here's how to fix it: First step page End: Start of the loop body End of Loop body ---- Change href= "@n.url" to: ghref= "@n.url" After the change: Start of the loop body End of Loop body The second step JS end: function Initleftmenu () {$ ('. Easyui-accordion li a '). Click (function () {var Tabtitle = $ (this). text ()
Procedure:
1. The IFRAME page outputs scripts in the background and calls the js method of the parent page.
String retjs = " ";
Page. registerstartupscript ("message", retjs );
2. Execute JS on the parent page. A Success prompt is displayed. Close the pop-up window and set the current operation tabs to the selected one.
// Set the Selected tabFunction setselectedtab (tabtitle ){
$. Messager. Alert ('success', 'homepage image created successfully
Having used to use velocity, I encountered a problem in Porting previous Turbine-based programs to liferay4.0rc, which had plagued me for many days. Today, I finally completely solved the problem, which is summarized as follows: 1. liferay uses COM. liferay. util. velocity. multipleresourceloader to load VM files. The setting of this loader is in COM. liferay. po
Today, I migrated the liferay of the development server to the newly purchased server of the company. When I started liferay, the following error was reported:
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/49/FA/wKiom1Qg2-bBLl9AAAahhXgCIqI010.jpg "Title =" 1.png" alt = "wKiom1Qg2-bBLl9AAAahhXgCIqI010.jpg"/> View liferay's log reports an error as follows:
09:41:32, 171 info [localhost-startS
Environment Construction:Liferay-portal-tomcat-6.2-ce-ga4-20150416163831865.zip liferaytomcat ServerLiferay-ide-eclipse-windows-x64-2.2.4-ga5-201507230603.zip liferayide Development toolsLiferay-portal-sql-6.2-ce-ga4-20150416163831865.zip Liferay building a database statementLiferay-portal-src-6.2-ce-ga4-20150416163831865.zip Liferay Source PackageLiferay-plugins-sdk-6.2.zip
Liferay provides a very simple method of Web application integration and single point of login: IFRAME Portlet. IFRAME Portlet can be used to easily include an existing web application, and form post or get can be used for user login.
There is no problem with the liferay mechanism, and the implementation is also very clever. However, for many web application systems, after using the
When we create Liferay applications (such as Portlet,theme) with Maven, we often have a version choice, as shown in the figure:
The default show's last version of Archetype is selected, at which point we can only display the latest version of archetype, if we use the latest version of archetype development application, then eventually when the application deployed to the lower version of the container ( For example, the
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.