liferay

How to get all the users list in Kaleo Workflow on Assign to Combo box?

心不动则不痛 提交于 2019-12-08 01:30:16
问题 I am working in Liferay Portal. I have created my custom work flow and created the portlet to start the work flow. I am done successfully with this but I am facing one problem, when the user clicks on Assign to button from Workflow Tasks to assign the task to some other user the combo box which display available users, it only display the users who has the Administrator or Owner Roles . As i have developed custom work flow in which i have defined my own roles, i wish to display the users with

NullPointerException using liferay-ui taglib

只愿长相守 提交于 2019-12-07 16:57:33
问题 I'm trying to use the liferay-ui:icon-help tag in my (Liferay 6.1) portlet, but adding <liferay-ui:icon-help message="help me"/> to my edit.jsp gives me ERROR [render_portlet_jsp:154] java.lang.NullPointerException at com.liferay.taglib.ui.IconHelpTag.processEndTag(IconHelpTag.java:57) I'm sure I imported the taglib correctly because other tags such as liferay-ui:calendar work just fine. Did I forget anything? edit: IconHelpTag.java:57 suggests that there's something wrong involving the theme

How to obtain the languageid in a Liferay theme with velocity

試著忘記壹切 提交于 2019-12-07 14:11:53
问题 For the current theme im creating there are multiple images that require to change based on the current language. For example if the user is visiting the page in english we would load image_ languageid .jpg How can you replace languageid with the actual id of the language in velocity & liferay? Is this a good technique or is there a nicer one? 回答1: Try adding this line in init_custom.vm or portal_normal.vm #set ($language_id = $themeDisplay.getLanguageId()) 来源: https://stackoverflow.com

How to consume JSON Webservice from java client?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-07 13:33:54
问题 public void doView(RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException { Map countryList = new HashMap(); String str = "http://10.10.10.25/TEPortalIntegration/CustomerPortalAppIntegrationService.svc/PaymentSchedule/PEPL/Unit336"; try { URL url = new URL(str); URLConnection urlc = url.openConnection(); BufferedReader bfr = new BufferedReader(new InputStreamReader(urlc.getInputStream())); String line, title, des; while ((line = bfr.readLine()) !=

How to upload file in relative directory

巧了我就是萌 提交于 2019-12-07 09:14:25
I have made a application where we can upload any file which will save in our local given directory. I want to modify it, i want to add a drop down (with multiple option i.e floor, store, section) for department. i.e if we want to upload a file in 'Store' folder, we can choose 'Store' option and the file will uploaded to the 'Store' folder. Same for 'Floor' and 'Section'. I just need any example link for that. i have made it in liferay. import org.apache.commons.io.FileUtils; import com.liferay.portal.kernel.upload.UploadPortletRequest; import com.liferay.portal.util.PortalUtil; import com

Multiple Ajax calls liferay portlets

自古美人都是妖i 提交于 2019-12-07 06:19:51
问题 I am having liferay portlet and I need to heavily depend upon the AJAX calls. So I need to make multiple calls to serveResource method. One way to do the same is that I can pass a parameter with the URL and then differentiate the request according to that parameter. But in my case I have to call serveResource so many times due to which the method will be difficult to maintain. Is there any framework to do so? Using which the code becomes maintainable. 回答1: Use Spring MVC framework and call

Peoplesoft screens in an iFrame

99封情书 提交于 2019-12-07 04:58:28
Has anyone successfully integrated Peoplesoft screens or navigation via an iFrame in a third party app like Liferay or uPortal? We are trying to integrate Liferay Portal as a web front end and consume some of the PeopleSoft screens in an iFrame portlet. Both the Liferay Portal and Peoplsoft systems are on different top level domains. We are using Oracle Single Sign On on bot the applications. We have a couple of issues with this. The screens display in the iFrame - however, the JavaScript on the PeopleSoft does not execute and keeps spinning. In Chrome devtools console, there is the following

Liferay ajax request and JSON response

余生长醉 提交于 2019-12-07 04:08:15
问题 I am new in Liferay. I used service builder to create database. I populated them manually. And eventually I could call them in JSP using PersonLocalServiceUtil class . Now I want to use Ajax in my program. For example: Person with attributes personID , personWeight , personTemperature and datetime are stored in database. I want to do an ajax call by personID to see his weight or Temperature graph for particular timeline. All I know, I can call list from Database to controller But I don't know

How to support file upload in web-form Liferay 7?

拜拜、爱过 提交于 2019-12-07 02:35:37
问题 I need a simple extension for Liferay web form to enahance file attachment to data flled in a liferay 7 web form. Also need to sent this file as an attachment with the email to the registered user. I know how to achieve this functionality in liferay 6.2 but not about liferay 7. I am using liferay 7 GA-5 CE. Any help appreciated. 回答1: You need to create a custom form field type plugin, please find liferay wiki here Creating Form Field Type. and follow below steps, Change input type to file in

How to fetch liferay entity through custom-finder in custom plugin portlet?

喜夏-厌秋 提交于 2019-12-07 02:18:20
问题 How can we fetch liferay entities through custom-finder using custom SQL? Following is my sql query written in default.xml ( I have trimmed down the query to the bare minimum so that the logic remains simple. Since it included a few functions and joins we couldn't use DynamicQuery API ): SELECT grp.* FROM Group_ WHERE site = 1 AND active_ = 1 AND type_ <> 3 Relevant code in MyCustomGroupFinderImpl.java : Session session = null; try { session = openSession(); // fetches the query string from