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
Original: http://blog.csdn.net/hantiannan/article/details/7311845
In the Menu Add button, list the portlet.
But in many cases our site uses only a subset of the content.
How to hide some unwanted portlets.
There are two ways of doing this:
The first is to modify the configuration file: Portal-web/docroot/web-inf/liferay-display.xml
Put what you don't need in the Category.hidden.
Your own portlet, you need to modify the
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
Page layout1: Table layoutThe main fields are:
Field
Privatelayout
0 represents a public page
Field
LayoutID
If there are many interfaces in the same community, LayoutID represents each interface, in order
Field
Parentlayoutid
If there are sub-pages under a page you need to specify Parentlayoutid
Field
Priority
Indicate which pages in the same community are at the same level in priority order
Brief introduction:
It is well known that cross-domain problems are a very common requirement, such as having a client's EXT-JS control render a JSON object from the server side. We can solve them in many ways, such as JSONP. However, in Liferay, we can use the Serveresource method to gracefully resolve Cross-domain access issues.
Whiteboard Analysis:
Here is the whiteboard on the technical symposium:
Workaround:
First write a Serveresource met
In Liferay, if you can use good portletpreferences then it will be very powerful:
Brief introduction:
Portletpreferences is a combination of a set of information related to the current user, and we can allow a logged on user to share data through this portletpreferences on different pages of a portlet, at different stages, Without having to worry about other users stealing the data. The benefit of using this shared data is that it does not require s
Recently our team asked Liferay to do the front page tuning, of course, the evaluation tool is the most important, in order to see the specific page loading time and so on, our first choice of course is the Chrome Browser diagnostics tool, but the total feeling is not professional, based on my experience, I still recommend YSlow, it The index of the page will be graded, and then finally get the total score then rating, General level has A,B,C,D,E,F6 l
In the Liferay Control Panel, when you click the search user in the user panel:
The requests sent to the server are as follows:
Based on the configuration in Struts-config.xml, we find forward that match struts-action to/user_admin/view_users:
Then go to tiles-def.xml and find the page that matches forward for Portlet.users_admin.view:
So, we found the page is/portlet/users_admin/view.jsp:
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
Copy the following code to the Web. xml file for Liferay:
Copy the following code to portal-ext.properties:
Company.security.auth.type=userid
Auto.login.hooks=com.liferay.portal.security.auth.basicautologin,com.liferay.portal.security.auth.casautologin
# Disable Auth pipeline (we use CAS for all this via Auto.login.hooks)
Auth.pipeline.pre=
Auth.pipeline.enable.liferay.check=false
Code to modify CAS client: Edu.yale.its.tp.cas.client.Util
Fo
It is widely reported that I log on to the 64-bit server and the server is stuck (I don't know why)
So I decided to say goodbye to 64 for everyone's happiness. Haha.
I set up an environment on other servers, and everything went smoothly, because it has been set up many times,
However, when Tomcat is started at the end, when auto deploy restart started for/LTC/home/liferay/deploy is started, nothing will go down, and it won't be done after a long time,
Introduction:
We all know that we can use sessions to store attributes, but Liferay PortletSession is somewhat special. It can use different scopes to store different attributes. Our sample code is as follows:
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/15061KS6-0.png "title =" 1.png" alt = "153666521.png"/>
Here we will study the details of PortletSession, for example, how to store the attributes on different scopes.
D
In the/portal-master/portal-impl/src/portal.properties file, the following configuration is available:# # Input A list of sections that would be included as part of the organization# form when adding an organization. #organ Izations.form.add.main=details,organization-siteorganizations.form.add.identification= Organizations.form.add.miscellaneous=# Input A list of sections that'll be included as part of the Organizatio n# form when updating a organization. #organizations. Form.update.main=detail
22:00:39,557 ERROR [schedulermessagelistener:53] Unable to process message {destinationname=liferay/scheduler_engine, Responsedestinationname=null, Responseid=null, payload= COM.LIFERAY.PORTAL.KERNEL.SCHEDULER.MESSAGING.SCHEDULERREQUEST@D870CB, Values=null}
Com.liferay.portal.kernel.scheduler.SchedulerException:Unable to start Scheduler
At Com.liferay.portal.scheduler.quartz.QuartzSchedulerEngineImpl.start (quartzschedulerengineimpl.java:276)
At Com.l
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.