liferay

Liferay : Location of Language.properties

倖福魔咒の 提交于 2019-12-11 11:32:34
问题 I am following the learning path of Liferay in the docs. I am implementing the AlloyUI, However I got stocked because the docroot/WEB-INF/src/content/Language.properties is nowhere to be found in my package explorer, I have no content folder in my src . Any idea where can I find this? Thanks. 回答1: You don't give a lot of context, but content/Language.properties is the default location for the resource bundles in Liferay - probably you're either developing a portlet or a hook. As you say that

Liferay custom portlet permission label missing

回眸只為那壹抹淺笑 提交于 2019-12-11 11:16:24
问题 I've followed the instructions from this tutorial to introduce a new portlet level permission for my custom portlet. In the resource-action-mapping XML there is a new action-key called PARTNER_ADMIN_CONTRACTING , and I've added the following line to the Language.properties file: action.PARTNER_ADMIN_CONTRACTING=Admin contracting On the Define permissions tab, it still shows the label key, not the value: What's missing? 回答1: You have to add the action.PARTNER_ADMIN_CONTRACTING=Admin

Open Browser Popup in Liferay via Vaadin

匆匆过客 提交于 2019-12-11 11:05:47
问题 using Vaadin 7.1 and Liferay 6.1 I try to open a new UI (in the same session) in a new browser window using com.vaadin.server.BrowserWindowOpener: Button button = new Button("button"); BrowserWindowOpener windowOpener = new BrowserWindowOpener(OverviewWindow.class); windowOpener.extend(button); Where OverviewWindow extends UI is a trivial custom UI. In standalone use (i.e. without Liferay) this works fine, but in Liferay the popup opens and displays "Request was not handled by any registered

Get images from Liferay Document Library whose id is stored in separate databse table

时光怂恿深爱的人放手 提交于 2019-12-11 10:52:42
问题 I have an Employee table which stores details of Employees (name,date of birth etc) I have a field in Employee table named fileEntryId which stores the Id of the employee pics which are stored in DL in liferay. What I want to do is if the fileEntryId in Employee matches with fileEntryId of the dlfileEntry table of the Document Library then display the images in the search container along with details from Employee table. How to this? EDITED: I have a little problem here. All the images are

Editing velocity template of Liferay changes not showing or takes a while

匆匆过客 提交于 2019-12-11 09:26:54
问题 I'm currently editing my portal_normal.vm (server/tomcat/webapps/mytheme-theme/templates) testing if I can write on the file and see it on my browser. I tried putting a test comment "<!-- test -->" just to see if I can really write on the file. So I refreshed the file and hope I can see the comment I've added, but there we're none. So I continued refreshing (ctrl+r),\ and viewing the source code for almost an twenty minutes. After a while when I tried viewing it again it reflected in my

LifeRay form validation using Alloy UI

喜你入骨 提交于 2019-12-11 08:37:10
问题 I use LifeRay 6.1.2. And it have built-in Alloy UI 1.5. framework. So I try to reproduce this form validation example (I copied all code), but it don't work as expected (error labels in DOM, but they are don't visible in form (see EDIT1)): Expected result is (you can try yourself live example using link provided above): Where is problem? How to solve it? Thanks. EDIT1: After some research, I realized that if I delete aui-form-validator-message CSS class from error message's DIV tag (it

Liferay - AutoLogin + Authenticator - Get Credentials From Request Header

半世苍凉 提交于 2019-12-11 08:27:00
问题 I need help with Liferay Autologin and Custom Authentication. My goal is to get credentials from header (populated by differents authentication framework) and then autologin. I have also to call some services when user login. I've read some docs (also that one at http://www.liferay.com/community/wiki/-/wiki/Main/Developing+a+Custom+Authentication+System) but still I doesn't understand. I've done a hook with portal.properties: auto.login.hooks=it.mypackage.filter.AutoLoginFilter and the class:

Can Liferay publish to a another server?

空扰寡人 提交于 2019-12-11 07:35:00
问题 here is the third question of my liferay series. :-) Sorry therefore but it is a different question. I want to provide a service on my server for sport clubs. The clubs should use the system for managing their internal communication. Furthermore they should publish news, content, etc. for all their guests on the public website. To get the full benefit the club must to transfer its domain to my server. To avoid this I thought of publishing to a different server. For example: The club uses my

Liferay: customize CKEditor

假装没事ソ 提交于 2019-12-11 07:34:39
问题 I try to customize shortcuts keys in Liferay 6, in the CKEditor. I made a hook, and added this to the file html/js/editor/ckeditor/ckconfig.jsp: CKEDITOR.config.keystrokes = [ [ CKEDITOR.ALT + 121 /*F10*/, 'toolbarFocus' ], [ CKEDITOR.ALT + 122 /*F11*/, 'elementsPathFocus' ], [ CKEDITOR.SHIFT + 121 /*F10*/, 'contextMenu' ], [ CKEDITOR.CTRL + 90 /*Z*/, 'undo' ], [ CKEDITOR.CTRL + 89 /*Y*/, 'redo' ], [ CKEDITOR.CTRL + CKEDITOR.SHIFT + 90 /*Z*/, 'redo' ], [ CKEDITOR.CTRL + 76 /*L*/, 'link' ], [

Downloading files that has been uploaded via dynamic data list in Liferay portal

倾然丶 夕夏残阳落幕 提交于 2019-12-11 07:18:56
问题 I'm uploading files via dynamic data list Document field. Now I would like to allow anonymous users to download those files, but currently they see only file name without the link to file: Do you have any suggestions about how can I achieve that? Edit: As @Mark suggested, I've created Display Templated and in freemarker editor I've selected Display and Media field. It generated following code in my .ftl file: <a href="${ddmUtil.getDisplayFieldValue(themeDisplay, cur_record.getFieldValue(