liferay

How to avoid jsession id from URL in Liferay Portal?

给你一囗甜甜゛ 提交于 2019-12-22 10:38:09
问题 Please can anyone tell me how can i get rid of JSESSIONID parameter from URL? I do not want it to be appended to the URL. 回答1: In the portal-ext.properties file set: session.enable.url.with.session.id=false 来源: https://stackoverflow.com/questions/24512426/how-to-avoid-jsession-id-from-url-in-liferay-portal

Controling the size of a Portlet in Liferay

前提是你 提交于 2019-12-22 08:52:56
问题 I have a simple Vaadin portlet which displays an Embedded page e.g www.stackoverflow..com. In Liferay I set the page layout where the portlet is to 1 column Layout so that the portlet fills out the full page. Now if I resize my browser (Firefox 11) the portlet is not being effected at all. Is there a way to make my Portlet resize itself if I resize my Browser ? I checked the ?debug console there are no layout errors and if I resize my broswer vaadin seems to call some resize funktions to set

entreprise intranet Liferay or Alfresco

浪子不回头ぞ 提交于 2019-12-22 08:27:15
问题 I want to create an enterprise intranet , that provides authentication of employees and management profiles, messaging, calendar, document management... I think I can use php or java CMS , for the moment after some research I decided to use Liferay or Alfresco. The problem is that I don't really know the difference between them , and what I have to choose . 回答1: They're quite different products, solving different business needs. Liferay It's a Java Portal. It focuses on creating web sites

Where to place resource-action-mapping in Liferay-Portlet?

陌路散爱 提交于 2019-12-22 08:26:14
问题 I am trying to add permissions to a Liferay-Portlet based on the documentation of Liferay. Since the Portlet will be delivered in a war-package, I want to mantain the permission definition of the portlets inside the portlet itself. I created a file resource-actions.xml with the following content (portlet-name is identical to the name specified in portlet.xml and liferay-*.xml): <?xml version="1.0"?> <resource-action-mapping> <portlet-resource> <portlet-name>test-portlet</portlet-name>

Bootstrap modal in Liferay

删除回忆录丶 提交于 2019-12-22 08:03:29
问题 I use Bootstrap 2.3.2 and Liferay 6.2 bundled with Tomcat. I have some modal windows with complex body structure created in Bootstrap 2.3.2 and I would like to use them in my portal. Here is said that Liferay uses Bootstrap 2.3.2 css, but not Bootstrap 2.3.2 javascript and components like modals, tooltips, tabs, ... are included in AlloyUI. I included Bootstrap 2.3.2 javascript and tried to use my modal windows, but if I want to show a modal window it doesn't appear. I would like to ask, how

Including jQuery and other JS files in Liferay Theme

这一生的挚爱 提交于 2019-12-22 04:09:39
问题 I use Liferay 6.1 and I created my theme ( sample-theme ) and I want add jQuery . How can I do that? Why I have folders: sample-theme and liferay-work and both have folders: css, js, templates? I created folder _diffs and subfolder js and there copy jQuery and add in portal_normal.vm : <script src="/html/js/jquery/jquery-1.8.2.min.js"></script> And I don't see any changes, Why? How can I add jQuery? Not only to a single portlet but for all. I don't have folder docroot I am use Maven and in

Create object in velocity template

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-22 03:58:10
问题 I am writing velocity templates for my liferay theme and I am wondering, whether it is possible to create a new object inside the velocity template. The reason is that in liferay there is no contextTool registered in the context and I really want to be able to inspect the variables that are present in the template at a given time. There is a cool macro for this, but unfortunately it uses the contexttool. I'd like to do something like: #set($contextTool = new ContextTool()) Another solution

Create object in velocity template

倖福魔咒の 提交于 2019-12-22 03:56:05
问题 I am writing velocity templates for my liferay theme and I am wondering, whether it is possible to create a new object inside the velocity template. The reason is that in liferay there is no contextTool registered in the context and I really want to be able to inspect the variables that are present in the template at a given time. There is a cool macro for this, but unfortunately it uses the contexttool. I'd like to do something like: #set($contextTool = new ContextTool()) Another solution

How to retrieve a user profile picture in Liferay

怎甘沉沦 提交于 2019-12-21 21:05:48
问题 I want to retrieve a user profile picture. How do i do it? Could you please share a code snippet? Im using Liferay 6.0.6. It has only user.getPortraitId() and no user.getPortraitURL(). So once i get the portrait id inside a JAVA class, what do i do with it? 回答1: See the implementation of UserConstants.getPortraitURL(...) https://github.com/liferay/liferay-portal/blob/master/portal-service/src/com/liferay/portal/model/UserConstants.java On this approach you can get the image url. If you need

Setting SearchContainer in portlet to use it in JSP using EL and JSTL

余生长醉 提交于 2019-12-21 12:42:44
问题 I am trying to use SearchContainer in my liferay application. Currently I've to use JSP Scriplets to set the results in <liferay-ui:search-container-results> tags. This is the snippet so far: <liferay-ui:search-container emptyResultsMessage="there-are-no-courses" delta="5"> <liferay-ui:search-container-results> <% List<Course> tempResults = ActionUtil.getCourses(renderRequest); results = ListUtil.subList(tempResults, searchContainer.getStart(), searchContainer.getEnd()); total = tempResults