liferay

Trimming down Liferay: Removing Hibernate and other unused applications

与世无争的帅哥 提交于 2019-12-10 21:56:19
问题 I have some questions related to interaction of Liferay with hibernate. We for some reasons want to eliminate this layer from the application. Hence the below questions: I know that Liferay is packaged with Hibernate and the access to data in Liferay database is simplified by using the Hibernate API. To what extent does it depend on it? Can it be unplugged? How much development effort would be required on it? For what purpose does liferay use its internal database? Primarily we basically want

Not able to open a portlet in liferay dialog

邮差的信 提交于 2019-12-10 20:48:48
问题 I have a dialog in my portal which opens a portlet. When I click on the link and the dialog opens, the dialog shows You do not have the roles required to access this portlet. However, if I add the same portlet on the page, the portlet opens without any hitch, both on the page and the dialog. What am I missing here? Anybody got any idea ? My Codes are : #set ($profile_url = $portletURLFactory.create($request, "profile_WAR_profileportlet", $getterUtil.getLong($plid), "RENDER_PHASE")) $profile

Need to change template styles in Liferay

六月ゝ 毕业季﹏ 提交于 2019-12-10 20:23:19
问题 I want to change look and feel of liferay using css. i am very new to liferay. Can any give me any idea to do the changes. Thanks in advance 回答1: The step-by-step seems complicated, but it's not that bad ..... 1a) download and unpack the plugins sdk for the version of liferay you want to use. All the downloads are on the sf page http://lportal.sourceforge.net/ 1b) make sure you have the latest version of ant and the JDK version that matches your liferay version (1.5.x or 1.6.x) 2) there are a

Liferay Search Container pagination

断了今生、忘了曾经 提交于 2019-12-10 20:18:36
问题 I have used liferay-ui:search-container in my code. the search results are being displayed properly till i click on the NEXT. The portlet is being reloaded and that is taking me to the first page of the portlet, trashing the presented search results. How do I retain the search results even after the portlet gets reloaded? 回答1: You can give a value to the iteratorURL attribute if its default behaviour doesn't fit your needs. In the following example when you click 'Next' on the search result

How to deploy to AWS Elastic Beanstalk on successful Teamcity build

家住魔仙堡 提交于 2019-12-10 18:34:59
问题 I want to deploy a java application(Liferay) to Beanstalk from Teamcity when a build succeeds. I can't find anything online, please suggest. Thankyou 回答1: Here is an example for PHP, but you can use it with any other platform (via CLI): http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_PHP_eb.sdlc.html UPD: Here is an even better way: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-reference-eb.html. Just command line tool. You can run it in TeamCity build step

ShouId I migrate from Liferay 6.1 to Liferay 6.2?

邮差的信 提交于 2019-12-10 17:14:12
问题 I would like to ask a question about wether or not I should do the migration to Liferay 6.2. Me and my team are working since 4 month on a portal quite big developed with Liferay 6.1 (CE edition) and now, since the project publication date is still 4-5 month ahead (so I do have time), I was wondering if doing the migration to 6.2 now is a good choice. I already tried the new version and I must say I am impressed about the new features and since now I haven't find any bugs. Anyone had any

How can I change default timezone in Liferay Portal 5.2+

混江龙づ霸主 提交于 2019-12-10 16:39:56
问题 I'm having an issue using Liferay Portal Community 5.2.3 according to timezones and time offsets. In windows, it seems to work correctly (GMT+2 Madrid picked auto), but when I install in Linux server, timezone gets stuck to UTC (GMT). I've no system-ext.properties, so default is UTC, but then... how it works on Windows? In administration->system properties I get UTC for timezone on both installations What am I doing wrong? And another question. If i set timezone to GMT+2 (CEST), what happens

Giving access to organization pages to new user

旧街凉风 提交于 2019-12-10 16:26:41
问题 In the web application I'm working, I've created an organization site which can be accessed by group/game/home . I've made this default landing page after login. By putting this value in the portal-ext.properties file default.landing.page.path=/group/games/home I've also set these two properties to make sure the user is redirected to the default landing page after successfully login. layout.show.portlet.access.denied=false auth.login.url=/web/guest/login Now, when I add a new user to the

Display data from Custom Query(Joined tables) in liferay search container

做~自己de王妃 提交于 2019-12-10 15:52:53
问题 I have followed this wiki and have successfully built a custom query. It works fine. I have used a join between tables. My question is how do I display it on a jsp using liferay search container since className in search container requires one model class. EDIT: What I have tried till now is this: <% getAttendanceData attName = new getAttendanceData(); List<Object[]> displayAttListName = AttendanceLocalServiceUtil.findAttendance(); ArrayList name = new ArrayList(); ArrayList title = new

Creating a Liferay portlet configuration page

妖精的绣舞 提交于 2019-12-10 14:15:15
问题 I'm trying to create a configuration page for a Liferay portlet, so I can set some parameters for it. For example I would like to choose what page should a controller display when viewing it. The configuration should be located here: So I've created a controller for the config like this: import com.liferay.portal.kernel.portlet.ConfigurationAction; import javax.portlet.*; public class SandboxPortletConfig implements ConfigurationAction { @Override public void processAction(PortletConfig