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