liferay-7

Liferay 7 Eclipse IDE override default categories behaviour

天大地大妈咪最大 提交于 2019-12-14 03:17:02
问题 I need to create a portlet in order to change the default category behaviour/interface in Liferay 7. My objective is to duplicate assetcategory table, expand and change its columns, and use this new table as a reference for categories within Liferay backend. Therefore there are three key points my portlet has to update: The category organization UI to create/update category tables on DB. I’m able to create a new Liferay module project ( panel-app template) which can present the UI backend

How to use custom storage type for liferay 7 forms?

人盡茶涼 提交于 2019-12-13 21:46:08
问题 I am following this tutorial CREATING ADVANCED FORMS, but I am not able to understand how to use external database for storing form data. I cant find any tutorial about this concept. I am using liferay 7 CE. Also tutorial says that developers can implement their own storage types if JSON is not desirable. If they do, the option will appear here in Form Settings. See the tutorial on custom storage types ( not yet written ) for more information. My question is which service-wrapper to use, I

LAST_PATH Redirection in Custom Login Post Action in Liferay 7

纵然是瞬间 提交于 2019-12-13 03:42:11
问题 I'm implementing custom login in Liferay 7 - one module for login hook portlet and one for ActionCommand. I also generated class for post login event. The problem is redirection won't work on either this class or on JSP of login hook porlet. This is my code for LifecycleAction: @Component( immediate = true, property = { "key=login.events.post" }, service = LifecycleAction.class ) public class UserLoginPostAction implements LifecycleAction { private static final Log LOGGER = LogFactoryUtil

Creating a custom taglib in Liferay 7

我的未来我决定 提交于 2019-12-12 19:57:08
问题 I am coding an application using Liferay 7 and OSGi modules. I need to create a custom taglib available across all modules (portlets), but I have litteraly no idea where to start. Do you have any idea? Should I store the taglib definition, classes and JSPs in an OSGi modules? And if not, where, and how can I reference it from a portlet module? Thank you very much 回答1: In most cases you should be able to deliver a taglib completely within an OSGi module. You can find several examples in

Liferay 7.0 - making all Portlets Borderless by default via theme

早过忘川 提交于 2019-12-12 04:34:26
问题 After searching for a solution to the problem of setting portlets default look and feel through the theme, I have tried the following in WEB-INF/liferay-look-and-feel.xml : <setting configurable="true" key="portlet-setup-show-borders-default" type="checkbox" value="false" /> However, it does not seem to work on Liferay 7.0 GA3, and have run out of places to look for a solution. My requirements are for a default portlet behavious where all decaration is disabled, i.e. borders and title and

How to delete aui.css from pages in Liferay 7

旧巷老猫 提交于 2019-12-12 01:00:01
问题 How to disable aui.css for custom pages in Liferay 7. Is it possible to do this somehow via portal-notmal.ftl 回答1: aui.css is coming in through the unstyled theme, which typically is the basis for every theme there is. That being said, you can override it and remove it this way. It's refined in the styled theme, and also in the classic theme (in the same github repo, you'll find it). If you do so, note that you'll still have to deal with a lot of formatting on your own - the classes and other

java.lang.ClassCastException: com.sun.mail.handlers.multipart_mixed cannot be cast to javax.activation.DataContentHandler

↘锁芯ラ 提交于 2019-12-11 16:41:39
问题 The line part.writeTo(out); throws java.lang.ClassCastException : com.sun.mail.handlers.multipart_mixed cannot be cast to javax.activation.DataContentHandler private static void getBodyAsRFC822( MimePart part, boolean ignoreHeaders, ByteArrayOutputStreamout) { try { out.reset(); if (ignoreHeaders) { OutputStream os = MimeUtility.encode(out, part.getEncoding()); part.getDataHandler().writeTo(os); os.close(); } else { part.writeTo(out); out.close(); } } catch (Exception e) { _log.error(e); } }

Replacing top-head.jsp Liferay with a custom one

蹲街弑〆低调 提交于 2019-12-11 15:05:33
问题 In portal-normal.ftl I use top-head.jsp is it possible to replace it and use the custom page? 回答1: Yes, it is. In general, you can customize everything in Liferay. However, this and your other question make me believe that you are going for the wrong solution to whatever problem you have. If you look at top_head.jsp, there is a lot of functionality made available on every page. Unless you're prepared to lose it all, you'll have to replace it with your own implementation. In order to add

Liferay IPC listener runs multiple times

左心房为你撑大大i 提交于 2019-12-11 04:03:00
问题 First of all sorry if this question has been already asked somewhere, but after a few hours on google I still can't find an answer. I am pretty new in portlet development, (but we have a shortage of developers and I have to work with it time to time), so the solution might be something trivial, but I really don't have enough experience with it. The problem is I have two portlets on a page and I try to let one of them know about changes in the other. For this I use IPC. In the first one I have

liferay 7 - Mismatched anonymous define()

筅森魡賤 提交于 2019-12-11 03:39:31
问题 I'm trying to include sockjs (v1.1.2) in my liferay 7 portlet, but I'm receiving this warning: Mismatched anonymous define() module: function ()... and then the library isn't loaded. I directly included the .js file in my liferay-portlet.xml like this: <header-portlet-javascript>/common/js/sockjs.js</header-portlet-javascript> I don't have any idea to make it work 回答1: Looks like you are running into an issue that's been fixed by LPS-68298. If you are using Liferay 7.0 DXP SP2+ or Liferay 7.0