liferay

How can I check the version of a Liferay instance?

£可爱£侵袭症+ 提交于 2019-11-30 06:34:08
I have several instances of Liferay Portal (bundled with Apache Tomcat 5.5.x/6.x) and I need to know how to check the version of those Liferay instances . Thanks in advance. Dima As an administrator, go to: Control Panel -> Configuration -> Server Administration The version is in the information banner at the top of the "Resources" tab. You can also check that information in the console log when starting up the server or checking the the headers of a HTTP request Jaromir Hamala Look at class com.liferay.portal.kernel.util.ReleaseInfo located in tomcat/common/lib/portal-kernel.jar . There is a

Is it possible to add Extra Fields Under Create User in Liferay

微笑、不失礼 提交于 2019-11-30 05:12:41
I am using Liferay 6 for portal Development . During Creating Users under Liferay , i need to add some extra Fields also ?? Please let me know if this is ppossible or not ?? Please see the screen shot attached here , and also please let me know in which table this will be stored in Database ?? Yes, you can use Custom Attributes functionality for liferay entities (in your case, User) and can add as many extra fields as necessary for each liferay entity. Custom field for the user-entity can be created through: Control Panel -> Portal -> Custom Fields -> User . And programmatically can be created

“A is not defined” inside of <aui:script> block

ぐ巨炮叔叔 提交于 2019-11-30 02:47:22
问题 I'm trying to extend some functionality of an existing Liferay portlet. As part of this, I would like to use Alloy UI to modify the value of a field in the portlet. There's a pre-existing <aui:script> block where I would like to define my custom function. I went ahead and tried using A.one('element') , but I am receiving the error "A is not defined." A.one() is used elsewhere in the same .jsp file, though not in an <aui:script> block, and it functions as expected. I have tried Googling this

Testing for custom plugin portlet: BeanLocatorException and Transaction roll-back for services testing

廉价感情. 提交于 2019-11-30 02:21:08
My Problems: I can test successfully for CRUD services operation. I was doing an insert on @Before [setUp()] and delete of same data on @After [tearDown()] but going forward I would need to support Transactions rather than writing code for insert and delete. I am successful in fetching single records of my entity but when I fire a search query or try to fetch more than one of my entities I get: com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator has not been set for servlet context MyCustom-portlet I have followed some of the following links to set-up Junit with Liferay: Liferay

Creating liferay portlet - how to pass data to view.jsp from Java class?

走远了吗. 提交于 2019-11-30 01:50:55
I'm trying to create portlet in liferay with just only from a JSP file called view.jsp . What I need is: When the portlet loads, I want to call custom Java class where I generate an array. I need to pass that array to the view.jsp . How to do that? Have you created your portlet with the create.sh script from Liferay? In this case, we will need to create a new portlet class that extends MVCPortlet : public class ArrayPortlet extends MVCPortlet { } Also, you will have to change the WEB-INF/portlet.xml file to point to its class. Replace the line below by <portlet-class>com.liferay.util.bridges

Received fatal alert: handshake_failure

吃可爱长大的小学妹 提交于 2019-11-29 22:47:22
问题 I'm trying to send push notifications to my device using javapns library in liferay . Here's the code: private void pushNotification(ActionRequest actionRequest, ActionResponse actionResponse) { try { System.out.println("Push"); Push.alert("Hello World!", "ck.p12", "PASSPHRASE", false, "TOKEN"); } catch (CommunicationException e) { System.out.println("CommunicationException"); e.printStackTrace(); } catch (KeystoreException e) { System.out.println("KeystoreException"); e.printStackTrace(); }

How to add custom portlet in Control Panel section

不羁岁月 提交于 2019-11-29 20:55:20
问题 How can I add a custom portlet to the Portal section of the Control Panel, as shown in the following figure: 回答1: Here is how to do it: In your portlet's liferay-portlet.xml (you can check the DTD of this xml for more information on other tags) include two tags in your <portlet> tag as shown: <portlet> <portlet-name>MyCustomPortlet</portlet-name> <icon>/mycustom.png</icon> <!-- These are the two entries which are required for the portlet to appear in the control panel --> <!-- Set the control

Liferay input-date format

风格不统一 提交于 2019-11-29 17:40:55
I am using Liferay 6.2 and want to use a liferay-ui:input-date field. Field itself is working fine. However i want to change the displayed date Format from mm/dd/yyyy to dd.mm.yyyy But how to do this? I cant see any attibutes to set this... <liferay-ui:input-date firstDayOfWeek="1" yearValue="<%=calendar.get(calendar.YEAR)%>" monthValue="<%=calendar.get(calendar.MONTH)%>" dayValue="<%=calendar.get(calendar.DAY_OF_MONTH)%>" dayParam="dateFrom-day" monthParam="dateFrom-month" yearParam="dateFrom-year" /> I looked at the input-date taglib code and if you want to change the pattern you have to

How can I run some action when my plugin was deployed to Liferay?

烈酒焚心 提交于 2019-11-29 15:55:30
I want to run some code as soon as my plugin ( portlet , hook or theme ) is available in Liferay. I can't find anything like a startup listener in liferay-plugin-package.xml , liferay-portlet.xml , liferay-hook.xml or liferay-look-and-feel.xml . There is another way. You could utilize the StartupAction. It is merely an Event, which get's triggered on every startup of a plugin. This method will only get triggered once on a server start or deploy. Recognize, that the doRun method get's a String array of companyIds as an argument. A companyId is representing a portal instance (the Liferay

Display portlet in pop-up Liferay

巧了我就是萌 提交于 2019-11-29 14:59:57
I am trying show a portlet (that previously I have created) from another one, but the pop-up is empty. First, I create the renderURL: <liferay-portlet:renderURL var="testPopupURL" portletName="<%=rule.getBannerPortletId() %>" windowState="<%=LiferayWindowState.POP_UP.toString() %>"></liferay-portlet:renderURL> and I do the link: <aui:a href="#" onClick="showPopup('${testPopupURL}')">View</aui:a> and this is the function showPopup: function showPopup(url){ console.log("En el showPopup "); AUI().ready('aui-dialog', 'aui-io', 'event', 'event-custom', function(A) { window.myDialog = new A.Dialog({