随笔分类 - Liferay 6.2 改造系列
摘要:当基于测试数据的Portlet调试完成后,接下来就是引入远程服务,替换测试数据。 (此处以Dubbo框架远程服务为例) 分步指南 注意事项 当出现无法获取远程服务对象,而出现NullPointException时,请检查对应的****-portlet.xml文件中,是否包含以下配置行:(其中红色部分
阅读全文
摘要:当基于Crystal的静态Portlet开发完成后,在与后台服务联调前,还需要将Portlet转换成基于测试数据的动态Portlet。具体步骤如下: 分步指南 创建测试数据项目: 根据api实现相关服务的实现类,但方法内部只需返回设计的测试数据即可,如下: @Service public class
阅读全文
摘要:当团队需要基于Crystal开发Porltet时,分为以下三部: 基于Crystal开发静态Portlet 基于将静态Portlet修改为基于测试数据的动态Portlet 将动态Portlet与动态数据服务联调 那么如何基于Crystal开发静态Portlet呢? 分步指南 1、创建项目 准备基于E
阅读全文
摘要:当Crystal Portlet中需要采用Ajax请求,并让后台返回Json数据时,如何才能正确、方便的返回Json数据呢? 以下两种方法均可: 方法一:Ajax请求时,采用RenderURL,对应Portlet类中采用ajax(data)方法返回Java对象即可; 方法二:Ajax请求时,采用Re
阅读全文
摘要:为了便于后期与Cas集成过程中使用数据库用户的方便,将liferay密码的加密方式改为SHA。 在/portal-master/portal-impl/src/portal.properties配置文件中,有如下配置: #passwords.encryption.algorithm=BCRYPT/1
阅读全文
摘要:1、修改主题模板文件,具体位置如下 (1) portal-master\portal-web\docroot\html\themes\_unstyled\templates\portal_normal.vm (2) portal-master\portal-web\docroot\html\them
阅读全文
摘要:1、修改web资源并发布 如果修改了默认主题信息,需执行portal-web中的build-themes任务; 执行portal-web中的deploy任务; 2、修改portal-impl中的java文件并发布 执行portal-impl中的clean、compile、deploy任务; 3、发布
阅读全文
摘要:问题原因是WebSphare下,servletContext.getContextPath()获取到的值为“/”而非空字符串。 在/portal-master/portal-impl/src/com/liferay/portal/spring/context/PortalContextLoaderL
阅读全文
摘要:1、修改默认添加用户权限为User,而非Powers User: 在/portal-master/portal-impl/src/portal.properties文件中有如下配置: # # Input a list of default role names separated by \n cha
阅读全文
摘要:在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Input a list of sections that will be included as part of the form when # updating a s
阅读全文
摘要:在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: 修改为: # # Input a list of sections that will be included in login form navigation. # login.
阅读全文
摘要:在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Set this to true if users are shown that they do not have access to a # portlet. The p
阅读全文
摘要:在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: 修改为: # # Specify the locales that are enabled by default. # locales.enabled=zh_CN,en_US #
阅读全文
摘要:在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: 修改为: # # Set this to true to enable OpenId authentication. If set to true, then the # prop
阅读全文
摘要:在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Input a list of sections that will be included as part of the organization # form when
阅读全文
摘要:为简化用户编辑,删除无用内容: 在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Input a list of sections that will be included as part of the user for
阅读全文
摘要:将Portal设置页面中无用的内容删除: 在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Input a list of sections that will be included as part of the com
阅读全文
摘要:在行业客户中,一般无法提供CDN服务,因此默认关闭CDN动态资源功能: 在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Set this to true to enable serving dynamically gen
阅读全文
摘要:1、关闭自动登录功能: 在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Set this to true to allow users to select the "remember me" feature to # a
阅读全文
摘要:为了让用户信息更贴近实际需求,修改如下信息: 1、让登录名可以使用数字、“.”、“_”等 在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Set this to true when you want the valida
阅读全文

浙公网安备 33010602011771号