liferay-6

Liferay With Multiple Server Instances

一曲冷凌霜 提交于 2019-12-08 18:26:09
问题 I'm working with multiple Liferay Projects (different Portal, plugins, user and usergroups etc ) in the same time, and often have to switch between them. This switch requires lots of steps like Editing the portal-ext.properties (to change the Liferay Database, and edit some custom project-specific properties), and edit 'portal-setup-wizard.properties' Add/remove portlets themes and hooks from the Eclipse Server instance, sometimes clean the Tomcat's 'data' 'Webapps' and 'work' folder Go to

Can the ResourceLocalService be called remotely via the JSON-WS API?

六眼飞鱼酱① 提交于 2019-12-08 13:31:31
问题 I'm trying to create a Liferay permissions resource using the JSON-WS API. I haven't found any JSON-WS API registered service methods in http://localhost:8080/api/jsonws for creating Resources. According to the JSON Web Services docs, you can remotely enable services by adding the @JSONWebService annotation. It is not clear to me how and if you can register Liferay's built-in services if they aren't already exposed. Also, the Javadocs for ResourceLocalService specifically state: This is a

Why the searchContainer variable is unknown?

牧云@^-^@ 提交于 2019-12-08 11:00:51
问题 I'm trying to do a simple example with the searchContainer working with liferay 6.1. The searchContainer variable is unknown in view.jsp. I get the error "searchContainer cannot be resolved". I tried to include <%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %> It didn't work. Code looks like this: <liferay-ui:search-container iteratorURL="<%= actionURL %>" delta="10" emptyResultsMessage="no-documents"> <liferay-ui:search-container-results total="<%= list.size() %>" results="<%

Could not connect to SMTP host: localhost, port: 25?

余生长醉 提交于 2019-12-08 10:06:58
问题 am using liferay 6 and created one custom class..i want to create mail notification function...I have written following code in my class private void SendEmail(NotificationObject pNotificatonObj, String[] pReciepientAddresses) throws MessagingException { log.info("In SendMail"); Properties props = new Properties(); props.put("mail.debug", "true"); props.put("mail.smtp.socketFactory.fallback", "false"); Session session = Session.getInstance(props); Message msg = new MimeMessage(session);

Passing values to action class from radio button

大憨熊 提交于 2019-12-08 09:54:17
问题 I am having a jsp form where I have to mark attendance for each employee and store the results in the database. My jsp snippet for marking attendance is as follows: <portlet:defineObjects /> <% List<Employee> EmployeeAttendanceDetails = MISPortalActionUtil.getEmployeeData(); %> <portlet:renderURL var="viewMarkAttendanceURL"/> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>mark attendance</title> </head> <body> Mark Attendance for

Best way to include Dynamic Data List Records in search in Liferay 6.1

百般思念 提交于 2019-12-08 09:31:46
问题 In Liferay 6.2 it is possible to set the Indexable option on fields of Dynamic Data List Definitions, thereby making them searchable (as explained in the Documentation for Liferay 6.2) I want to include DDL records in my search and have to use Liferay 6.1. I am wondering, what would be the best way to go about this. Right now I have looked into customizing the search, but Dynamic Data Lists are not being mentioned there as an option. I also looked at Creating an Indexer Post-Processor hook,

Integrate Jsf application into Liferay

流过昼夜 提交于 2019-12-08 09:19:29
问题 I am developing a JSF 2.0 (with primefaces 3.2) application, and I want to integrate my JSF application inside Liferay. I am new to Liferay and the requirement is that the application will have entrance through Liferay. That means User will login, which should happen through Liferay. Then as I have seen in liferay basic videos after login in liferay 'Liferayhomepage' comes. Now please guide me, inside that homepage or after login I should be able to see a JSF application that I am developing,

Comaprison of Liferay ServiceBuilder to other Code generation tools like AndroMDA

若如初见. 提交于 2019-12-08 09:10:15
问题 I started digging into the liferay 6.x ServiceBuilder framework and really liked its code generation approach. A simple service.xml file can generate ready to use powerful services without even writing a single line of code. I also tried looking into AndroMDA which can generate similar services from the UML model, which sounds even more interesting since it will link my business model directly without me needing to learn a new xml config for service.xml (in case of liferay ServiceBuilder) now

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