liferay-6

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

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

Primefaces <p:ajax update=“@all” /> doesn't work

流过昼夜 提交于 2019-12-22 01:32:03
问题 I've got a problem with using p:ajax update atribute element. When I use in my code <p:ajax update="@all" /> then I am getting javax.el.PropertyNotFoundException . When I use <f:ajax render="@all" /> I don't get any. I though that thouse tags are nearly same. Can anyone explain whats happening? I am using mojjara implementation, primefaces 3.5 and Liferay jsf portlet bridge. Example of stacktrace: Caused by: javax.el.PropertyNotFoundException: /pages/views/personForm.xhtml @95,99 value="#

Current URL /web/guest/HTML generates exception: null in Liferay 6.0.6

落花浮王杯 提交于 2019-12-22 00:26:09
问题 I develop an example of Struts2 with Jasper Reports and every thing work fine. In my index.jsp I have index.jsp : <body> <a href="HTML.action" target="_blank" >click to generate pdf report</a> </body> struts.xml : <struts> <package name="default" extends="struts-default,jasperreports-default"> <action name="HTML" class="com.tutorialspoint.DataBeanList" method="exporte"> <result name="success">/index.jsp</result> </action> </package> </struts> but when I want to do that with Liferay 6.0.6 I

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

Liferay 6 - How to set up custom layout as default?

房东的猫 提交于 2019-12-21 20:46:19
问题 I'm working on a Liferay 6 project, and part of the project is to create a new layout template to be used for the entire site as the default. Liferay's own wiki is very sparse on documentation about layout templates, and I haven't had better luck with Google searches or even here on SO. I did find one article ( Liferay - Layout for each pages ) that sort of answers the question, but it seems like it might be overkill. In that question, the goal was to change the template based on the page, so

Which Graph Database (Orient or Titan) is good to use with spring and liferay? [closed]

家住魔仙堡 提交于 2019-12-21 05:28:32
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . please help me , I'm quite confuse while deciding to use graph database , I'm developing a Social networking website . so please suggest me which I have to use . I developing this project using spring and liferay 6.2. Please help me . Thanks in advance. 回答1: Titan as product is dead about 2 weeks ago. DataStax

Dynamic columns in liferay-ui:search-container?

天涯浪子 提交于 2019-12-21 03:46:19
问题 I have tried the liferay-ui:search-container to fetch and display the database table records on UI in a table/grid format. By using the liferay-ui:search-container I am getting the output as shown below, I am fetching the USER_ table records in the above screen shot. Problem: I wanted to make the grid columns dynamic like, I wanted to enable an option for end user to remove the unwanted columns and add the wanted columns in the respective grid/table. EX: In the above screen shot the the

Removing Custom Permissions/Actions from a Portlet

独自空忆成欢 提交于 2019-12-21 02:49:09
问题 I have been able to define custom portlet actions/permissions based on this example in Liferay Plugins SDK https://github.com/liferay/liferay-plugins/tree/master/portlets/sample-permissions-portlet I want to know the necessary steps I need to take to remove the custom portlet actions/permissions (not model permissions) from a portlet. I remember observing that when I re-deploy a portlet with modified custom actions/permissions, the old custom actions/permissions stick around. I tried deleting