portlet

Change Liferay Portlet Title in javascript

此生再无相见时 提交于 2019-12-13 03:21:38
问题 Does it possible to change liferay portlet title using javascript? For example I have a couple of divs, one of them is shown, other are hidden. I press the button and different div is going to be shown. Portlet title must be name of that div. There is portletTitleEdit function in util.js, but seems it's not the function I need, because it tries to save the portletTitle via ajax. I need just to substitute the title. 回答1: You could add some custom javascript as jQuery is available something

Do JSR-286 portlets require a web.xml file in their WAR files?

与世无争的帅哥 提交于 2019-12-13 00:53:02
问题 Does the JSR 286 spec require the presence of a web.xml file in WARs containing portlets? At first, I thought so but then I created a portlet without a web.xml , deployed it in Liferay and it worked flawlessly. So is it an extension (or a bug) of Liferay, or is it not necessary to have such a file? 回答1: As Olaf rightly said portlet is nothing but a web application. Liferay has a listener that gets triggered when the portlet auto deploys. It explodes the war and adds web.xml and the content

how can i prevent firefox caching

拟墨画扇 提交于 2019-12-12 17:19:25
问题 i tried a lot of possible solutions but i can't solve the problem: <meta http-equiv="Cache-control" content="no-cache"> <meta http-equiv="Cache-control" content="no-store"> <meta http-equiv="Cache-control" content="must-revalidate"> <meta http-equiv="pragma" content="no-cache"> <meta name="expires" content="0"> these are not working. Can anybody help? I am using jsp/servlet. And application is a portlet for websphere portal 6.1. 回答1: The meta headers are only used when the page is requested

Perform workflow transition programmatically in liferay?

只谈情不闲聊 提交于 2019-12-12 09:57:16
问题 I have two transition named "approved" and "reject" at the lastest step of my workflow, but i want to controll the workflow action from my portlet. Anybody know How to Perform workflow transition programmatically in liferay ? 回答1: my current code JournalArticle journalArticle = JournalArticleLocalServiceUtil.getArticle(id); getPermissionChecker().init(u.getUser(), true); WorkflowInstanceLink wil= WorkflowInstanceLinkLocalServiceUtil.getWorkflowInstanceLink(companyId, journalArticle.getGroupId

Liferay ClassNotFoundException: DLFileEntryImpl

跟風遠走 提交于 2019-12-12 09:45:45
问题 On my 6.1.0 Portal Instance with a 6.1.0 SDK-Portlet that makes use of ServiceBuilder and the DL-Api this line: DynamicQuery query = DynamicQueryFactoryUtil.forClass(DLFileEntry.class) produces this error: 16:46:46,319 ERROR [DynamicQueryFactoryImpl:83] Unable find model com.liferay.portlet.documentlibrary.model.impl.DLFileEntryImpl java.lang.ClassNotFoundException: com.liferay.portlet.documentlibrary.model.impl.DLFileEntryImpl at org.apache.catalina.loader.WebappClassLoader.loadClass

Develop a common jar library for different liferay portlets

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 07:35:52
问题 I need some utility classes that will be common for three different Liferay portlets so I will develop them in one project that should be shared for my portlets. I am using Eclipse with Liferay IDE plugin and my question is what kind of project is that one that I need? I mean is it a simple Java project or any kind of Liferay project? 回答1: There are ways you can do this: Create a simple Java project. Package it as a JAR file. Put the JAR file in global class-path In case of tomcat the global

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 add css to change liferay basic view?

一笑奈何 提交于 2019-12-12 04:22:21
问题 I want to use some custom ui in my liferay site .How can i make it possible Like if i want to change this portion of liferay? I have made one css file for this but its just overlay this followingsection. so any way to edit this section of liferay with css? 回答1: The right way to do this is to create a theme which will have a template directory setup that will merge specific css to the ones which the system is based on. http://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai

How to save portlet positions

荒凉一梦 提交于 2019-12-12 03:45:16
问题 I will be using jQuery's functionality to create portlet widgets for my web application suit. I haven't started as of yet, but will do soon, so this is the planning Now, currently, the page loads, and the widgets load into their default positions. A user can move them around, change their settings, whatever. Now, my problem is that I want it such that the widget placement is saved for the user, not just per session, but as an account variable. I am using PHP and MySQL for the level-base

Defining resourceUrl of another portlet's controller in current portlet's JSP

送分小仙女□ 提交于 2019-12-12 03:34:29
问题 I have two portlets with some set of controllers defined. We are using Spring MVC. In the View i.e JSP we defining some resourceUrls like <portlet:resourceURL var="ListResourceUrl" id="getList" ></portlet:resourceURL> this refers to the controller which I have defined as @ResourceMapping("getList") @ResponseBody public ModelAndView getList(ResourceRequest request,ResourceResponse response) throws IOException { ......... } Now I want to define another resourceUrl referring to a controller