liferay

How can I get the values submitted from a JSP in Liferay?

两盒软妹~` 提交于 2019-12-04 05:19:34
问题 I am using Liferay Portal 6 version. How can I get the UserName and Password values with in the same page? <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> <%@page import="javax.portlet.RenderRequest"%> <portlet:defineObjects /> This is the <b>Kiran</b> portlet. <form> <p><b>UserName:</b> <input type="text" name="UserName" size="10"></p> <p><b>Password:</b>   <input type="Password" name="Password" size="10"></p> <p><input type="submit" value="Submit" name="submit"><input

action class do not passing objects to jsp class ,using struts2 in liferay

梦想的初衷 提交于 2019-12-04 05:14:48
问题 i'm using struts2 in liferay to create a portlet, i have a submit button that doing an action, in action method i want to fill a private field and pass it to resualt add.jsp but when i want to print that field in add.jsp the value is null. what is the problem???!!! what should i do????!! there is no error or exception during run server,build/deploy and executing... here is my code: portlet.xml http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="2.0"> <description xml:lang="EN"

How can i find - which portlets are deployed on which pages in Liferay 6.1?

随声附和 提交于 2019-12-04 04:41:57
问题 In other words, Which Database tables do i need to look into for the mapping of a portlet to a page in an organization? If there is such a thing?! We are using Liferay 6.1.20 回答1: Apart from the marketplace portlet. If you have access to the Database you can fire a simple query on the Layout table to know in what all pages your portlet is added: SELECT * FROM Layout WHERE typeSettings LIKE '%my_WAR_myportlet%'; Also you can build a FinderImpl with service-builder to execute this query through

Unable to view deployed Liferay portlet in the add >> more option

时光总嘲笑我的痴心妄想 提交于 2019-12-04 04:23:08
I have created a sample Liferay portlet and it has successfully deployed. But, the eclipse console didn't say "1 portlet is ready for use". And, I couldn't find this portlet in the Add >> More.. option on a Liferay page. Prakash K As Mark mentioned, it is undeterministic and it sometimes happen. I usually follow the following steps and after this it works normally. Steps: remove all the references of the portlet from webapps. stop the server deploy the portlet's WAR restart the server check the logs if the portlet is deployed. If possible try to build the WAR again and deploy the new WAR, and

Severe security constraints while tomcat 8 startup with liferay

烂漫一生 提交于 2019-12-04 04:22:15
I am getting the below severe message while the tomcat 8 comes up with liferay. SEVERE [localhost-startStop-1] org.apache.tomcat.util.descriptor.web.SecurityConstraint.findUncoveredHttpMethods For security constraints with URL pattern [/bg/c/portal/protected] only the HTTP methods [POST GET] are covered. All other methods are uncovered. 03-Sep-2015 07:06:00.733 SEVERE [localhost-startStop-1] org.apache.tomcat.util.descriptor.web.SecurityConstraint.findUncoveredHttpMethods For security constraints with URL pattern [/sv/c/portal/protected] only the HTTP methods [POST GET] are covered. All other

Freemarker does not assign staticUtil

不羁岁月 提交于 2019-12-04 04:13:42
I worked Application Display Templates on liferay 6.2, I use freemarker help pagination the dynamics data list of liferay. When I upgrade to liferay 7, it is a problem. Liferay 7 use code <#assign records = ddlDisplayTemplateHelper.getRecords(reserved_record_set_id)> for get a records. Old code: <#assign DDLRecordLocalService = serviceLocator.findService("com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalService")> <#assign records = DDLRecordLocalService.getRecords(reserved_record_set_id)> <#assign totalRecord = DDLRecordLocalService.getRecordsCount(reserved_record_set_id, 0) > It

Liferay startup takes way too long

倖福魔咒の 提交于 2019-12-04 02:43:18
I'm new to Liferay developing and I’m facing troubles with the startup of my Liferay Tomcat server. It takes almost 3 minutes (169048 ms) which is unacceptable for development. I’d like to get it down to about one minute. Here are the specs of my machine: Intel Core Duo T2300 @ 1.66GHz 4GB RAM (3.24GB in use) Windows 7 Enterprise 32 bit with Service Pack 1 I’m using: Liferay 6.1.1-ce-ga2 bundled with Tomcat 7 Eclipse IDE Juno Release In order to speed things up, I’ve: removed all unnecessary portlets from the tomcat\webapps folder. put the Tomcat native library 1.1.24 in the tomcat\bin folder

how to import a theme in liferay 7 workspace?

做~自己de王妃 提交于 2019-12-04 02:33:14
问题 how to import a theme in liferay 7 workspace? I added the theme under workspace/themes and I tried to deploy it but did not work. The build type of my Theme is Ant. The following picture shows the details: I put the Theme under *sdk\com.liferay.portal.plugins.sdk-1.0.11\themes* and I tried to test it as in Liferay 6. Import-> Liferay Projects from plugins SDK then when adding the SDK I got an error : app.server.dir is invalid. Please reconfigure Plugins SDK setting: app.server.dir=path to

jQuery plugin in a Liferay 7 theme

六眼飞鱼酱① 提交于 2019-12-03 22:29:18
问题 I need some help understanding Liferay 7 themes, specifically to use jQuery plugins. As I am having the same issue as in this thread: https://web.liferay.com/community/forums/-/message_boards/view_message/79089004 "is not a function" is occuring whenever I call the plugin function I tried to install. I am tring all the possible placements for this: <script type="text/javascript" src="${javascript_folder}/mCustomScrollbar.js"></script> When I inspect the page I can see the jQuery object there,

Integration of Grails into Liferay

有些话、适合烂在心里 提交于 2019-12-03 21:54:33
I wanted to integrate Grails into a Liferay portlet. I saw that a plugin for that purspose exists ( http://www.grails.org/plugin/portlets-liferay ) but the documentation is not very helpful. I only want to start with it, so I create a simple Hello World aplication in Grails ( http://grails.org/doc/latest/guide/2.%20Getting%20Started.html#2.4 A Hello World Example ) and I want to include it in a Liferay portlet. Which commands or configuration modifications have I to do? 来源: https://stackoverflow.com/questions/7926598/integration-of-grails-into-liferay