liferay

Troubleshooting java.lang.AbstractMethodError in portlet development

不羁的心 提交于 2019-12-25 03:39:29
问题 I'm having this issue while developing portlets: Caused by: javax.servlet.ServletException: java.lang.AbstractMethodError: javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext; I don't know anymore, what I can do. My portlet set-up is as follows: in web.xml: <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" in my jsp: <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> I also have some Maven dependencies in the POM file including portlet-api 2.0, jsp-api 2.1

Liferay Web-Service: method in *LocalServiceImpl not getting build in *LocalServiceUtil

℡╲_俬逩灬. 提交于 2019-12-25 03:34:08
问题 Methods I am defining in *LocalServiceImpl is not getting defined by service builder in *LocalServiceUtil. Have gone through this question,but didn't work for me Liferay: Any method written in *LocalServiceImpl not found in *LocalServiceUtil service log: build-service: [echo] Loading jar:file:/home/rayon/shi/liferay%20bundle%2020th%20may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties [echo] 8 Jun, 2015 8:18:28 AM com.liferay.portal.kernel

Orbeon : Liferay Form Runner Proxy Portlet Preferences not saved

懵懂的女人 提交于 2019-12-25 02:14:04
问题 I'm trying to implement the Form Runner Proxy Portlet into my Liferay portal but I have a problem. In Orbeon, I have an application named "CUS07" and two forms named "CUS07" and "Test" (and Orbeon default app and forms). I set the init parameters in "portlet.xml" to display "CUS07/CUS07" form by default. It's working well. But when I go to the "Preferences" page in the portlet configuration and I set "Form Runner app name" to "CUS07" and "Form Runner form name" to "CUS07" and click on "Save"

Current menu link in nevigation bar must stay highlighted [closed]

隐身守侯 提交于 2019-12-25 01:55:16
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . On navigation bar once i clicked on any menu like (Home), home link is active but doesn't stay highlighted. Unable to find the solution. 回答1: You need to dynamically add active class to menu item and add suitable style to it. HTML <ul id="navi"> <li><a class="menu" href="#">About MHG</a></li> <li>

How to disable Control-panel's “My Account” Portlet for only Power-user role

强颜欢笑 提交于 2019-12-25 01:42:54
问题 I want to disable (remove access) for Control Panel > My Account portlet for Power-user role or for my custom user. It should display for Administrator role. Is there any portal properties or some other configuration? Or do we need to achieve something through coding? 回答1: For this I would suggest you do the following: 1) Go into the Control Panel 2) Go to "Roles" under the "Portal" section 3) Go to "Actions" -> "Define Permissions" for the Power User role (or any other role you want to

glassfish change default jsf impl

半城伤御伤魂 提交于 2019-12-25 01:04:13
问题 i need to change the default jsf impl provided with glassfish 3.0.1 The one provided is version 2.0.2 but i need something higher like 2.1.x because i use liferay portal 6.0.6 and it throws exception while trying to cast ResourceResponseImpl to HttpServletResponse. I got a tip that if i change the jsf impl to 2.1.x it should work. Anyway, i just want to make sure i do it right.. Should i change only the jsf-impl and jsf-api jars or do something else as well. There is two jars that i am not

where liferay site will store in which table details will fetch?

白昼怎懂夜的黑 提交于 2019-12-25 00:47:04
问题 if we create site,organisation where it will store.i mean in which default table it will store.`Programmatically create organization site from site template Create organization site Organization organization = OrganizationLocalServiceUtil.addOrganization(creatorUserId, 0, name, createSite); Fetch site templates List<LayoutSetPrototype> layoutSetPrototypes = LayoutSetPrototypeLocalServiceUtil.getLayoutSetPrototypes(organization.getCompanyId()); LayoutSetPrototype customSiteTemplate = null; //

Liferay 7 Eclipse IDE override default categories filters query

若如初见. 提交于 2019-12-24 23:04:45
问题 I’m looking for a way to override the default category filter behaviour for Asset Publisher widgets (point 3 of my previous question here). As far as I understand in the Setup > Asset Section > Filter a rule based on categories will look for all source > asset type components which match the selected categories. I would like to know where is default query stored and how it is possible to modify it in order to introduce other custom criteria. Update: I can create a Liferay module project

how do redirect in LIFERAY from first.jsp on second.jsp?

半城伤御伤魂 提交于 2019-12-24 19:06:49
问题 <% if(my_value==true){ //redirect to page second.jsp } %> How do this? please help me in this questions 回答1: The redirection inside of jsp isn't realy expedient idea, because jsp-parsing below to render phase and this phase is concepted to show the content. On the other hand redirection below to action phase, here you can decide what the portlet should do at next. Read this tutorial for better understanding the two-phase of portlet: http://www.liferay.com/documentation/liferay-portal/6.0

how to solve error of jsp page?

泪湿孤枕 提交于 2019-12-24 18:21:05
问题 I have string type method in java file it contain string array and when I try to call in jsp , it give me an error. public String[] ordering(ActionRequest actionRequest,ActionResponse actionResponse) throws IOException,PortletException JSP: <% TestiPortlet obj=new TestiPortlet(); String str[]=obj.ordering(actionRequest,actionResponse); out.println(str[0]); %> Error: Multiple annotations found at this line:- actionResponse cannot be resolved to a variabl-actionRequest cannot be resolved to a