liferay

How to show error message in liferay portal?

戏子无情 提交于 2019-12-29 05:50:11
问题 How to show error message in liferay portal? I read on liferay.com site that for show error message I can use liferay-ui:error tag from tag library, but it's not working, how to use it? 回答1: You are right in about "liferay-ui:error" tag so on your JSP you will have: <%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %> <liferay-ui:error key="some-error" message="Your error message goes here!" /> Then in your Java code you will need either the RenderRequest or ActionRequest

PKIX path building failed in Eclipse

不打扰是莪最后的温柔 提交于 2019-12-28 04:20:29
问题 i'm working with Liferay and i'm using eclipse, and running a client/server model, using an encrypted socket (SSL). Currently, my application is running the client/server connection ok when I run the application in batch mode but when i try to start the server in Eclipse the application is giving me error javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid

ResourceActionsException While adding the value in database in my own portal

百般思念 提交于 2019-12-25 18:36:42
问题 I am having Following error while adding some value to database. My Error trace is as follows ... 10:06:10,730 INFO [RestaurantPortlet:35] Inside addRegistration 10:06:10,731 INFO [RestaurantPortlet:40] {Resto_ID=0, Name=KFC, Location=AHMEDABAD, Room_Count=0, Table_Count=0, userId=10196, companyId=10154, groupId=10180, Reseller_ID=0} com.liferay.portal.ResourceActionsException: There are no actions associated with the resource com.test.model.Restaurant at com.liferay.portal.service.impl

Duplicating a Liferay web page with non referenced web contents

守給你的承諾、 提交于 2019-12-25 13:25:22
问题 I have tried with duplicating a Liferay web page using existing web page and followed these steps to duplicate a Liferay web page. Log in to the Liferay -> Add (Click on the plus image) -> Select Page -> Enter the new page name -> Select any page layout -> Select Copy of a Page of This Site -> Select an existing page from the drop down menu -> Add Page After duplicating the web page I have edited the contents of new web page.After edit I have found that original page web contents also

How can I assign a role to a user in Liferay

时光怂恿深爱的人放手 提交于 2019-12-25 12:27:05
问题 Is there any API method to find the roleId using role name? I am getting the role name(s) form an excel sheet, I need to check, whether the role name exists or not. If role exist how can I assign that role to user? If role doesn't exist, how can I create the role first and then assign that role to user? My code, if(role != null && !role.isEmpty()){ Role currentRole=RoleLocalServiceUtil.getRole(companyId,role.trim()); if(currentRole != null) { roleId = currentRole.getRoleId(); } else{ Role

Liferay 6.2 CE-GA6 make NTLM work for chrome and firefox?

有些话、适合烂在心里 提交于 2019-12-25 11:04:26
问题 I have configured NTLM for single sign on in my application which is working fine on Internet Explorer but not on chrome and firefox.There is a restriction in Liferay source code which restricts NTLM only for IE. Is there any way I can remove that restriction? Note: Chrome and Firefox themselves support NTLM, it is Liferay side issue.Also asked this question here 回答1: After looking in a source code i think, you can just remove BrowserSnifferUtil.isIe(request) condition from if statements in

Produce a dynamic download from a portlet

会有一股神秘感。 提交于 2019-12-25 08:14:30
问题 Led by this comment in a previous question: Portlet: Forward a ResourceRequest to show the full portal I was wondering if the best way to generate a dynamic download from a portlet (Like, for example, a dynamically generated PDF or image), is making a ResourceRequest, or if there is a better alternative approach 回答1: The purpose of ResourceRequests and the serveResource method is to offer a way to serve resources or content fragments. So, yes, using ResourceRequests is a valid way to

Liferay: How to find all Layouts with the specific JournalArticle in AssetPublisher portlets?

泪湿孤枕 提交于 2019-12-25 05:24:26
问题 The requirements is easy. Someone publish a JournalArticle with some Tags (TagA, TagB). On the other pages (Layouts) we have AssetPublisher portles that show all JournalArticles with those Tags (e.g. TagA or TagB). The question is, how to get this layouts programmaticaly? 回答1: I solve it with recursive DynamicQuery , enjoy: public static Set<Layout> getLayoutsWithThisTags(SortedSet<String> tags) throws SystemException, PortalException { Set<Layout> layouts = new HashSet<Layout>(); //build

Liferay: how to prevent landing pages (login and logout) from being shown in the menu?

ぐ巨炮叔叔 提交于 2019-12-25 04:44:24
问题 I'm trying to find a clean way so that the login and logout pages for my liferay portal aren't shown in my menu. For the login page I guess I could move the user to the private pages section but I have no clue how I can make the logout landing page not visible. And preferably the logout page would only be navigable to when you're effectively logged out so users can't accidentally go to it when they've got the url cached in their browser. Any input would be appreciated. 回答1: Regarding hiding

Users and organization creation form

醉酒当歌 提交于 2019-12-25 04:19:16
问题 I have added portal directory inside a public page contains users and organization Q1>> I need to add portlet allow users depending on their roles to add edit organization and users depending on their roles outside the control panel "inside my new portlet in public page"? OR Inside portal directory portlet allow users depending on their roles to add edit organization and roles outside the control panel "inside my new portlet"? Q2>> How to make custom fields required fields? I'm new to liferay