liferay

Debugging JavaScript minification errors (in Liferay 6.2)

可紊 提交于 2019-12-13 04:34:21
问题 Liferay 6.2. tries to use best practices and JS minification is one of them. But what do you do when your unminified JavaScript works and minification produces errors like this (in Tomcat console): 12:23:48,794 ERROR [http-bio-8080-exec-10][MinifierUtil:111] 607: 21: identifier is a reserved word 12:23:48,797 ERROR [http-bio-8080-exec-10][MinifierUtil:111] 608: 45: identifier is a reserved word 12:23:48,802 ERROR [http-bio-8080-exec-10][MinifierUtil:111] 1: 0: Compilation produced 2 syntax

How to embed WebContent in Liferay

巧了我就是萌 提交于 2019-12-13 04:24:57
问题 Is that it is possible embed web content in a template velocity? I have two web contents and I want to unite the two into a single one. I tried this: #set ($webcontent-id = "13054") #set ($webcontent=$journalContentUtil.getContent($group_id, $webcontent-id,null,"$locale",$theme_display)) <div> $webcontent </div> #set ($webcontent-id = "13065") #set ($webcontent=$journalContentUtil.getContent($group_id, $webcontent-id,null,"$locale",$theme_display)) <div> $webcontent </div> However, it

How to search inside of a search container in liferay

妖精的绣舞 提交于 2019-12-13 04:24:49
问题 I have a search container that shows data from database. I want to put some input at top of it and search inside search container by this words. Please give me some example to do this ... 回答1: search container is a taglib that generates a certain HTML output and helps you to organize data in a way that results in a UI similar to that of Liferay itself. There's no inherent "searchability", just because of the name. Further, it depends on what exactly you intend to do when you "search in search

Liferay + Glassfish 3.1.1 Location of portal-ext.properties file?

狂风中的少年 提交于 2019-12-13 04:01:38
问题 Where does the portal-ext.properties file go before the liferay war file is deployed? 回答1: It's typically the folder where your appserver resides. if I remember correctly, glassfish typically has two nested "glassfish" folder - there it'd be within the first. The best way to explore that yourself (and to be sure) is to put your portal-ext.properties in every location you guess it might be, then startup the server and examine the log. There it mentions which file is being read. Also, AFAIK

Access values displayed in Search Container in another jsp

左心房为你撑大大i 提交于 2019-12-13 03:59:52
问题 I have a jsp where I display some data of some people say employees. The data of each employee is displayed as a row. I have made each row as a link so that when a user clicks on any row which gives details of a particular employee, the user is directed to a jsp which displays the same data of the employee so that further processing could be done. My question is how should I pass the data of an employee when a user clicks on the row which contains that particular employee information? What I

Liferay - display only top menu pages in navigation portlet

…衆ロ難τιáo~ 提交于 2019-12-13 03:57:51
问题 I need to use Navigation portlet (71) to display only top menu pages (level 0) . It is not possible to configure this portlet in such way through his Configuration . So, the question is, what is the best approach to solve this problem: Create new portlet (navigation-like) Hook navigation portlet Any other ideas? Thanks a lot. 回答1: Navigation portlet is using Liferays tag - liferay-ui:navigation . You can create a small jsp-hook to override /html/taglib/ui/navigation/page.jsp . In this jsp you

LAST_PATH Redirection in Custom Login Post Action in Liferay 7

纵然是瞬间 提交于 2019-12-13 03:42:11
问题 I'm implementing custom login in Liferay 7 - one module for login hook portlet and one for ActionCommand. I also generated class for post login event. The problem is redirection won't work on either this class or on JSP of login hook porlet. This is my code for LifecycleAction: @Component( immediate = true, property = { "key=login.events.post" }, service = LifecycleAction.class ) public class UserLoginPostAction implements LifecycleAction { private static final Log LOGGER = LogFactoryUtil

Liferay can not build first plugin project

非 Y 不嫁゛ 提交于 2019-12-13 03:36:22
问题 I'm beginning with Liferay. Installed the Liferay Eclipse plugin, which worked fine. Configured the Liferay Server Runtime, which also worked fine. When it comes to create my first Liferay plugin project, it fails finishing this wizard tool. It never finishes. I tried already downloading the ivy cache files and putting it manually inside .ivy folder. Didn't work either. A strange thing that I noticed is that after doing this, when I tried to launch another try in Eclipse, it created another

Change Liferay Portlet Title in javascript

此生再无相见时 提交于 2019-12-13 03:21:38
问题 Does it possible to change liferay portlet title using javascript? For example I have a couple of divs, one of them is shown, other are hidden. I press the button and different div is going to be shown. Portlet title must be name of that div. There is portletTitleEdit function in util.js, but seems it's not the function I need, because it tries to save the portletTitle via ajax. I need just to substitute the title. 回答1: You could add some custom javascript as jQuery is available something

Display data on jsp based on selected date from Liferay datepicker

こ雲淡風輕ζ 提交于 2019-12-13 02:54:48
问题 I have a datepicker. What I want to achieve is: based on the date selected by user, the data for that day should be displayed on the jsp. I have used a serveResource function for displaying some data in some other form. Should I create another such function such that based on selected date, data is displayed for that particular data? 回答1: You are using serveResource so you want to fetch data using ajax. Unfortunately you can't have resourceURL behave the same as actionURL in otherwords you