liferay-6

Not able to update database due to pre-marked attendance(values) Liferay

≡放荡痞女 提交于 2019-12-12 04:38:45
问题 I have the following functions to mark attendance of an employee: public void updateDailyAttendance(ActionRequest areq, ActionResponse aRes) throws Exception { int totalEmployees = EmployeeLocalServiceUtil.getEmployeesCount(); List<Employee> employeeAttendanceDetails = MISPortalActionUtil.getEmployeeData(); String datt = areq.getParameter("datt"); String Imatt = areq.getParameter("matt"); String yatt = areq.getParameter("yatt"); int Lmatt = Integer.parseInt(Imatt); String matt = Integer

how to add css to change liferay basic view?

一笑奈何 提交于 2019-12-12 04:22:21
问题 I want to use some custom ui in my liferay site .How can i make it possible Like if i want to change this portion of liferay? I have made one css file for this but its just overlay this followingsection. so any way to edit this section of liferay with css? 回答1: The right way to do this is to create a theme which will have a template directory setup that will merge specific css to the ones which the system is based on. http://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai

ClassCastException while implementing Many to many mapping with Liferay Service Builder

与世无争的帅哥 提交于 2019-12-12 04:01:35
问题 I am trying to implement many to many mapping with liferay service builder. I have found one blog on liferay savvy which explains how to implement it and provides a war file as well. You can download from here. It gets deployed successfully and also allows you to create student and courses along with their mapping. After adding some dummy data when I try to fetch courses based on student id with List<Course> studentCourseList = CourseLocalServiceUtil.getStudentCourses(xxxx) where xxxx is

This class does not support SAAJ 1.3

泪湿孤枕 提交于 2019-12-12 03:56:24
问题 In trying to call a webservice from a portlet from Glassfish to a webservice hosted remotely on weblogic we are getting this error: Caused by: java.lang.UnsupportedOperationException: This class does not support SAAJ 1.3 at weblogic.webservice.core.soap.SOAPHeaderImpl.addHeaderElement(SOAPHeaderImpl.java:178) I added the webservicesclient.jar from WebLogic to the portlet WAR file. How is the best way to handle this problem? EDIT: Adding webservicesclient.jar was the wrong thing to do. I

Liferay 6.2 adding a new ckeditor

安稳与你 提交于 2019-12-12 03:45:48
问题 I want to add a new ckeditor to my liferay because we need to limit the functionality of the one available. However, I do not want to change the original one because we migth later on need it in a different form. How can I add a new ckeditor that can be used to create a structure for webcontent articles? Do I need to create a new Theme for liferay or something like this? Info: Our liferay runs on a Jboss server EDIT: I have created a hook that overrides the html\js\editor\ckeditor\ckconfig

Adding custom field to User programmatically through liferay.expando

假如想象 提交于 2019-12-12 03:43:11
问题 I am trying to add fields to com.liferay.portal.model.User , an extra attribute using Expando . Can someone explain to me how this method is adding a field because docs don't have much description. private void addUserCustomAttribute(long companyId, ExpandoTable userExpandoTable, String attributeName, int type) throws PortalException, SystemException { ExpandoColumnLocalServiceUtil.getColumn(userExpandoTable.getTableId(), attributeName); //should be addColumn(long tableId, String name, int

Move collapsed menu button from the dockbar

不羁的心 提交于 2019-12-12 03:23:01
问题 I need to hide dockbar for non logged in guests. I did that by creating custom theme that uses welcome-theme as a parent, and the following snippet: #if($is_signed_in) #dockbar() #end in theme's templates\portal_normal.vm. This presents another problem - when page reorders to fit a mobile screen, menu collapses to a button in the dockbar which is hidden. I would love to have it collapse somewhere else, just that it isn't hidden - for example next to the small logo / site title, or as a first

Dynamic query with search container liferay

纵饮孤独 提交于 2019-12-12 02:05:10
问题 I am facing problem in dynamic query. I didn't get any solution how can i do following query in liferay dynamic query. mysql> select date_,count(*) from Clipping group by date_; +---------------------+----------+ | date_ | count(*) | +---------------------+----------+ | 2014-10-17 00:00:00 | 1 | | 2014-10-24 00:00:00 | 2 | | 2014-10-29 00:00:00 | 1 | | 2014-11-15 00:00:00 | 1 | | 2014-10-20 00:00:00 | 1 | | 2014-10-24 00:00:00 | 1 | | 2014-10-31 00:00:00 | 1 | | 2014-10-10 00:00:00 | 1 | |

Adding custom filter for asset publisher portlet?

半城伤御伤魂 提交于 2019-12-12 01:51:58
问题 We have created a new template and structure with custom attributes for submitting web content. The structure has few list attributes like: <dynamic-element name='size' type='list' index-type='' repeatable='false'> <meta-data>…</meta-data> <dynamic-element name='Less_than_5_000' type='Less_than_5_000' index-type='' repeatable='false'> </dynamic-element> <dynamic-element name='5_000_to_10_000_employees' type='5_000_to_10_000_employees' index-type='' repeatable='false'> </dynamic-element>

Migrating a website from OpenCms to LIferay

橙三吉。 提交于 2019-12-12 01:44:18
问题 A website is currently in OpenCms which needs to be migrated to Liferay framework as is. There is a concept of JSP templates in OpenCms. Is it possible to replicate the concept of jsp templates which is present in OpenCms into themes/layouts in liferay? OpenCms templates use cms tags like <cms: /> How will it be possible for me to transfer this entire website from OpenCms into Liferay? I have googled a lot regarding this but I did not get any answer for this. Help will be appreciated. EDIT: