![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
liferay
微笑彡三色
这个作者很懒,什么都没留下…
展开
-
liferay后台取不到值
当在网页上进行表单提交后,后台取不到值,显示为null解决方法:1.在网页上添加到name属性中。2.在liferay-portlet.xml文件中添加false (一般放在下)原创 2017-02-19 23:16:02 · 325 阅读 · 0 评论 -
关于 liferay 框架 后台需要获取不带namespace命名空间参数的 方法
上图中,直接用liferay的 ParamUtil.getString(resourceRequest, "path");方法能获取到path,答案是获取不到id,这时,我们使用原生的就能获取了,也就是取消了命名空间。 HttpServletRequest request = PortalUtil.getHttpServletRequest(resourceRequest); String原创 2017-05-17 11:01:25 · 264 阅读 · 0 评论 -
liferay 在控制层Java中获取当前网页URL后面跟着的参数
当当前URL为http://xxx/web/guest/newsview? newsId =123时,在后台需要获取newsId时,只需下面的代码HttpServletRequest request = PortalUtil.getHttpServletRequest(renderRequest); String articleId = PortalUtil.getOriginalS原创 2017-08-09 11:29:00 · 652 阅读 · 0 评论