Liferay by default in the case of Tomcat, jetty and other servers, automatically install the Marketplace-portlet-6.2.0.1.war package, implement automatic deployment of the store, generally do not need the store, so delete the following package:/portal-master/portal-impl/src/com/liferay/portal/deploy/dependencies/plugins1/marketplace-portlet-6.2.0.1.warIf you need to implement automatic deployment of other p
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
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
This problem actually stuck me for 1 hours, mainly beginning to think complex.
Because the default if the site to do in-station navigation, we are implemented with JS, and Liferay page is so complex, because the portal page is composed of a portlet, each page ID composition is also very complex, so I have been doing it for a long time did not get out, Until I returned to the basic definition of portal.
In the portal definition, a very important feat
Liferay has a service builder mechanism that generates a set of interfaces and classes and configuration files for the persistence Layer and service layer, and when we write a service.xml and invoke ant target as Build-service, The framework uses the Servicebuilder class to parse the Service.xml file:
For example, the service.xml we create is:
When we run Build-service Target, the location of this service.xml file is used with the first paramete
Basic permission (permission)
Based on the experience gained from RBAC, you can consider those started with _ as permission permits, while others as roles. In this way, other objects such as people/groups and dynamic objects can use either of them
Action
One action (Operation, Action, action) indicates a parameterized unit of work that can be applied to a node.
The nature of an action is similar to that of a class. However, the implementation mechanism of action is more flexible. You can
Session
One, the description of the session in the specification
(Portletsession objects must is scoped at the Portlet, application the context level.) Each portlet application has its own distinct the Portletsession object per user session. 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.