liferay

Change Liferay Search Indexer

社会主义新天地 提交于 2019-12-11 17:48:56
问题 I want to override the functionality of an indexer and what I found was that the indexer is defined in the liferay-portlet.xml and so I cannot override the indexer unless I changed the file on the server which is a bad practice, so is there anyway I can change the indexer in a good manner ?? 回答1: If you are using 6.0 or higher, you can change the way a document is indexed by using a hook plugin. Simply define in your liferay-hook.xml <indexer-post-processor> <indexer-class-name>com.liferay

Customize search results in Liferay 7.2 [closed]

我怕爱的太早我们不能终老 提交于 2019-12-11 17:14:38
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 months ago . I need to customize the search results page in Liferay in the following way: results must be displayed as a list of card with title, abstract (if present) and link to detail on the side of the page, there should be list of tags or categories of the results How can I achieve that?

Invalid authentication token after session timeout

 ̄綄美尐妖づ 提交于 2019-12-11 16:25:02
问题 I have enabled CSRF protection and it's causing a problem in the following scenario. The session times out and the user clicks on a button that triggers an action that requires the user to be logged in. As the session is now expired, the user is first taken to the login page then redirected to the action. The action url requested by the user is persisted in the login url with the the expired p_auth parameter and this causes an error I do not want to exclude this action from the CSRF

Vaadin Multilanguage portlet component captions

百般思念 提交于 2019-12-11 15:15:55
问题 I'm developing portlets with Vaadin in a Liferay Portal , mostly with english component captions(names) like "Cancel" "back" "next" and so on. Now i have to make the portlets "Multilanguage ready" that means if an user has set the language of his Liferay page to english he should see my portlet captions in english , but if an user sets the language of his Liferay page to german, the portlet captions should be displayed in german. Is there a way to check wich language the user has set as his

Migrate from Liferay Portal EE 6.1.20 to Liferay Portal CE 6.1.1

亡梦爱人 提交于 2019-12-11 13:54:23
问题 I would like to migrate from Liferay Portal EE 6.1.20 GA2 (developed locally with trial version) to Liferay Portal CE 6.1.1 GA2 (client requirement changed). Is it possible to use the same db (with some downgrade process possibly) and configurations, developed portlets, data etc.? A lot of information is stored in db (organizations hierarchy, users, roles, site and page templates, etc) and it is hard to migrate it manually with exports-imports etc. Trying to use the same db throws the

Liferay 7 Shared Session Attributes

夙愿已清 提交于 2019-12-11 13:39:13
问题 I'm trying to use Liferay shared session attributes. I would like to to use the same attribute on two different portlets in different WAR file-s on different URL-s using the following code based on: Liferay 7 not able to set the global session attribute Value I want to save: A single string Setting in portlet 1: String sharedKey = "LIFERAY_SHARED_" + key; HttpSession session = PortalSessionThreadLocal.getHttpSession(); session.setAttribute(sharedKey, bean); Portlet 1 is able to retain, reset

Can it possible to add the custom fields under Details tab liferay

南楼画角 提交于 2019-12-11 13:38:38
问题 With reference to the following link, https://www.liferay.com/community/wiki/-/wiki/Main/Custom+Fields+and+JSP+Hooks I am able to add the custom fields. But by default the newly added custom fields are showing under the "Custom Fields" tab. But I need to display my custom fields under the "Details" tab. How can I do that. Any suggestions please!! 回答1: You would have to hook the JSP of the portlet that you are working on. For example if you are working on Journal article portlet, than you will

How to write a java class to be accessed in liferay theme?

旧时模样 提交于 2019-12-11 13:29:26
问题 I have a Scenario where I have a java class written in JSP and its members are used in that JSP itself. The JSP is part of a liferay portlet. Now, I need to write that class for the velocity template in liferay theme so that I can access it in navigation.vm file. Following is a dummy snippet - xyz.jsp (part) <body> <% final class DummyABC { public String method1() { } public String method2() { } public String method3() { } } %> </body> I need to access this class in my navigation.vm file.

struts2 actionerrors, fielderrors return as json and display errors on the form - AJAX, Liferay Portal, Portlet

China☆狼群 提交于 2019-12-11 13:19:22
问题 I am wondering if anybody can throw any ideas on the following. Got an Action class with validate() method returning input JSP with actionErrors , fieldErrors when validations fail. I would like to get only the validation errors (JSON data ? ) and display the errors on the existing page and highlight the fields, rather than refreshing whole JSP with new response JSP. JQuery is used on client side, Struts2 as MVC framework, Liferay as Portal server. The following is the code that I tried,

Liferay + Geoserver

断了今生、忘了曾经 提交于 2019-12-11 11:37:39
问题 I've geoserver 2.1.3 and Liferay 6 ga1 the problem is .. I'm using 2 different ports for each , geoserver running on 8080 and Liferay running on 8082. This is a waste since its possible to have geoserver running in Liferay , right? The problem is How can I integrate GeoServer with Liferay? Thanks 回答1: Liferay is just a web application, just like any other regular web application is. Don't let yourself be tricked by the fact that you can download tomcat bundles: You can also download the WAR