liferay
头发浓密的程序员
小菜鸡也会写博客啦
展开
-
NoClassDefFoundError: jodd/servlet/ServletUtil
报错:Servlet.service() for servlet [JSON Web Service Servlet] in context with path [] threw exception [Servlet execution threw an exception] with root cause java.lang.NoClassDefFoundError: jodd/servlet/ServletUtil解决方法:拷贝两个包到 tomcat\webapps\ROOT\WEB-.原创 2021-05-27 14:18:06 · 286 阅读 · 0 评论 -
No JSON web service action associated with path
报错:No JSON web service action associated with path /baseinfo/add-or-update-base-info and method POST for //resume-portlet解决方法:json请求格式有问题或者data参数不够 $.ajax({ type : "POST", url : requestUser.addOrUpdateBaseInfo, data : { json : mydata原创 2021-05-27 14:15:51 · 239 阅读 · 0 评论 -
9.5.8 portlet 通信方法的选择
原创 2021-05-09 20:08:31 · 55 阅读 · 0 评论 -
9.5.7 portlet 之间的通信方式 通过URL传参
9.5.7 portlet 之间的通信方式 通过URL传参(1)doview 中 接收参数 HttpServletRequest servletRequest = PortalUtil.getHttpServletRequest(renderRequest); String cityId = PortalUtil.getOriginalServletRequest(servletRequest).getParameter("cityId");...原创 2021-05-09 20:03:43 · 77 阅读 · 0 评论 -
9.5.6 portlet 之间的通信方式-Portlet events
9.5.6 portlet 之间的通信方式-Portlet events1 复杂对象(1) portlet.xml 事件定义,引入位置在<public-render-parameter>上面 value-type 可以定义一个复杂对象,指向对象所在路径 <event-definition> <qname xmlns:x="http://www.baidu.com">x:city</qname> <value-type>com.st原创 2021-05-09 19:00:24 · 64 阅读 · 0 评论 -
9.5 Porlet 之间的通信方式-PortletSession
9.5 Porlet 之间的通信方式-PortletSession PortletSession Portlet URL 调用 Public render parameters Portlet events 通过 URL传参 1.portlet之间通信(1)portletA jsp页面设置表单<%@page import="com.liferay.portal.kernel.portlet.Lifer...原创 2021-05-09 15:29:32 · 91 阅读 · 0 评论 -
9.5.1 Porlet 之间的通信方式-HttpSession
9.5.1 Porlet 之间的通信方式-HttpSession(1)portletA jsp页面设置表单<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState" %><%@page import="com.liferay.portal.util.PortalUtil" %><%@page import="com.liferay.portal.model.User" %><%原创 2021-05-09 15:22:59 · 88 阅读 · 0 评论 -
9.5.2 Porlet 之间的通信方式-跨war包
9.5.2 Porlet 之间的通信方式-跨war包(1) liferay-portlet.xml 中加入该配置,需要共享的war包都要加 该配置表示:不打开session共享<icon>/icon.png</icon><private-session-attributes>false</private-session-attributes> 该配置开启后,如果只加 portleta 不加portletb ,则 portletb 通过 Port原创 2021-05-09 15:18:44 · 59 阅读 · 0 评论 -
9.5.3 portlet 之间的通信方式-actionURL调用
9.5.3 portlet 之间的通信方式-actionURL调用调用(1)portletA jsp页面设置表单<%@page import="javax.portlet.PortletRequest"%><%@page import="com.liferay.portlet.PortletURLFactoryUtil"%><%@page import="com.liferay.portlet.PortletURLFactory"%><%@page imp原创 2021-05-09 15:15:58 · 106 阅读 · 0 评论 -
9.5.5 portlet 之间的通信方式-public-render-parameter
9.5.5 portlet 之间的通信方式-public-render-parameter设置一个公共参数,多个 portlet 都可以 使用(1)portlet.xml 中定义参数 <!-- 公共渲染参数 --> <public-render-parameter> <identifier>city</identifier> <name>city</name> <!-- 类似命名空间一样的,和 name 不能共原创 2021-05-09 15:14:57 · 148 阅读 · 0 评论 -
9.5.4 portlet 之间的通信方式-renderURL
9.5.4 portlet 之间的通信方式-renderURLportletA 向 portletB 发送数据(1)portletA jsp页面引入<%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %><!-- 通过标签向 portletB 发数据,send 和下面 action 中的 send保持一致,portletName 为要接收数据的portlet名字,通过F12可以获取到,去除原创 2021-05-09 15:10:57 · 210 阅读 · 0 评论