- 博客(28)
- 资源 (1)
- 收藏
- 关注
原创 [Liferay] Liferay 实现单点登录 - CAS
接上一篇:Liferay 实现单点登录 - OpenLDAP本文不介绍概念,只注重实现Liferay : 6.1.1 CE GA2 OpenLdap for Windows :openldap-2.4.38-x86 Apache Directory Studio : Apache Directory Studio 2.0.0-M3 CAS : c
2014-10-30 16:30:09
1736
原创 [Liferay] Liferay 实现单点登录 - OpenLDAP
Liferay 的单点登录绝对是个难啃的骨头,更何况网上能搜到的基本都是些滥竽充数的文章,非常不负责任。于是在自己搭通单点登录一条线之后,决定整理下思路并写出来,希望各位能别重蹈覆辙。本文不介绍概念,只注重实现软件版本:Liferay : 6.1.1 CE GA2OpenLdap for Windows :openldap-2.4.38-x86Apache
2014-10-29 14:24:36
3422
原创 [Liferay]liferay hooks 修改 jsp
CUSTOMIZING JSP FILESYou can use Hooks to customize existing JSP files in the portal and to create new ones. Overriding JSPs in the portal:Changes are reversed when undeployed.Copies existing
2014-08-07 16:05:02
1361
原创 [Liferay] Liferay 瘦身,Liferay 精简,取消加载 Portlet
liferay version : liferay-portal-6.1.1-ce-ga2server : tomcat 7.0.25Liferay是很庞大,Portal 自带几十个 Portlet, 但是完全可以自己根据需求选择性加载 Portal 自带的 Portlet。好处就是:1,启动速度(性能)的提升2,界面能变得更加简洁,毕竟不需要的 Port
2014-07-21 10:32:42
1661
原创 [Liferay] 异常 :Could not initialize class com.liferay.util.portlet.PortletProps
portlet 在部署之后,报异常 - Could not initialize class com.liferay.util.portlet.PortletProps。先简述一下 portlet.properties,开发 portlet 过程中,可自己定义类似于 portal.properties 的配置文件 - portlet.properties。步骤如下:1. 在 c
2014-07-04 16:28:21
1987
原创 [Liferay] Liferay 批量添加 User
liferay version : liferay-portal-6.1.1-ce-ga2server : tomcat 7.0.25jdk : jdk1.7.0_51为了避免手动添加大量 User 数据需要实现批量形式一次性添加一定数量的 User起初实现思路如下 优势劣势手写 SQL 语句录入数据库不需要部署任何应用,直接对数
2014-04-21 15:44:39
1946
原创 [Liferay]Portlet 之间使用 PortletSession 进行通信
Portlet 之间通信有三种方式:1. PortletSession2. IPC3. Cookies现在有个需要解决的问题,怎么使用 Portlet A 在满足一定条件的情况下,穿参数给 Portlet B,通过该参数改变 Portlet B 的状态。原本打算使用 IPC, 因为上述三个方法中就属 IPC 概念最通俗易懂操作简单。但是 IPC 事件的周期首先需要
2014-04-02 15:47:26
1432
原创 [Liferay]Liferay 内存调整
liferay version : liferay-portal-6.1.1-ce-ga2server : tomcat 7.0.25jdk: jdk1.7.0_51在 liferay 开发过程中,随着代码量不断增大,部署应用越来越多,难免会感觉 liferay 反应越来越慢这种时候除了抱怨 l
2014-03-15 21:08:35
2804
原创 [Liferay] 在 Liferay 使用 SpringMVC 的 @ResourceMapping
之前一篇介绍过 Portlet 的 Resource Serving 生命周期的概念以及使用方法,因为使用不同的 MVC 框架,框架代码结构以及对 portlet 各个生命周期的调用方法都不一样,之前的项目都是用 Liferay 自己的 Liferay MVC,这是个非常轻量级的 MVC 框架,有兴趣的可以研究下,当然使用 Liferay SDK 开发 portlet 时可以选择
2014-03-10 23:03:19
4090
原创 [Liferay]Portlet 规范中ResourceURL 介绍以及使用
关于 resourceURL:Resource Serving Phase 是在 JSP-286 (Portlet 2.0) 规范中增加的 portlet 生命周期之一, 另一个 Event Phase。在一个 portlet 生命周期中, serveResource() 方法也就是 Resource Serving Phase 对应的方法, 在请求 ResourceURL 的状态下会
2014-03-10 22:32:53
2734
原创 [Exception]cannot cast java.lang.Class to java.lang.reflect.ParameterizedType
cannot cast java.lang.Class to java.lang.reflect.ParameterizedType启动服务器过程中出现这个异常,实现通过反射获取子类确定的泛型类,父类:public class BaseDAO { private Class entityClass; public BaseDAO() { Type genType
2013-11-05 00:33:17
1473
原创 [Liferay] liferay自定义查询语句custom sql实例
Liferay 版本 6.0 EE在liferay中进行数据库查询,一般使用service builder船舰的 *PersistentImpl就能满足需求,但是当然有例外情况需要自定义查询-custom sql。1. 在src目录下建立文件夹custom-sql, 建立文件default.xml2. 在 *.service.persistence
2013-09-24 19:27:12
2619
原创 [Liferay] 6.2.0 版本 form 表单中的 namespace 使用
写一个不使用 aui 标签的 form 表单提交数据代码如下 :" method="POST"> 在liferay 6.2 之前的版本中,在 portlet-class 内如果想获取数据:public voi
2013-09-13 17:43:39
2779
原创 [Liferay]springMVC在Liferay中出现过的问题:The requested resource () is not available
Spring 版本 3.0.5Liferay 版本 6.1 GA2在使用spring MVC 开发 portlet 时出现很奇怪的问题完成配置文件,写Controller如下(未完成):@Controller@RequestMapping("VIEW")public class ViewController { private final AddressBookServic
2013-08-14 12:00:32
4058
原创 [Liferay] 调用 remote service 时出现的问题
portlet A 实现 remote service, 原本意图 portlet B 能够调用这个 remote service。每一步都是按照步骤来,http://localhost:8080/system-info-portlet/api/axis/Plugin_Slf_SystemInfoService?wsdlportlet B 中调用方法SystemInfoServ
2013-07-09 10:29:14
1484
原创 [AUI] Liferay AUI editable的使用
需要实现效果如下图需要实现editable的是一整个表单,几行几列的根据客户的要求,不让在jsp里写java代码, 所以使用 标签,将每一行遍历出来例如: ${user.name} user-extension-${status.index} 是设置为可编辑的 div 的 id, 为什么有${status.index}
2013-07-04 15:15:06
1418
原创 [Liferay] 使用 Expando 自定义字段搜索对象
我们现在给 User 加一个自定义字段 “Height”, 有一个user 名字是 "John" ,其 “Height” 属性值为180.现在需要搜索所有自定义字段 “Height” 值为 180 的user。先初始化两个变量, 分别为自定义字段的名字, 与需要搜索的值。String customAttributeName="height"String customAt
2013-07-04 10:17:18
1814
原创 [Liferay] portlet A 调用 portlet B 的ServiceUtil
portlet B 通过service-builder生产相应的 *ServiceUtil 类,以此对数据库进行处理。portlet A 只有jsp页面,如果想要对 portlet B 生产的数据库表进行操作, 有三种办法一, 在 portlet A 手动写数据库操作语句二, 调用 portlet B 的 remote service三, 直接使用 portlet B 的 *ser
2013-07-03 17:38:54
1134
原创 [Liferay]基于liferay开发百度地图portlet
liferay version : Liferay Portal Community Edition 6.2.0 CEplugin sdk version : 6.2.0server : tomcat 7.0.25db : mySql 5.5.21IDE
2013-05-29 12:48:31
1495
原创 Sublime Text 2.0.1 编辑器中使用 Source Code Pro 字体
关于Sublime Text编辑器官网 点这里非官方文档 点这里关于Source Code Pro字体git 点这里下载 点这里风格 点这里1 下载Sublime Text编辑器解压,简单介绍以及教程 点这里2 下载Source Code Pro压缩包,解压,选择TTF或者OTF(两者区别这里不提, 本人安装OTF);3 选择文件夹内所有文件,
2013-05-02 14:02:14
6530
原创 [Euler]Problem 36 - Double-base palindromes
The decimal number, 585 = 10010010012 (binary), is palindromic in both bases.Find the sum of all numbers, less than one million, which are palindromic in base 10 and base 2.(Please note that t
2013-04-18 21:11:41
807
原创 [Euler]Problem 34 - Digit factorials
145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145.Find the sum of all numbers which are equal to the sum of the factorial of their digits.Note: as 1! = 1 and 2! = 2 are not sums th
2013-04-16 22:10:00
645
原创 [Euler]Problem 32 - Pandigital products
We shall say that an n-digit number is pandigital if it makes use of all the digits 1 to n exactly once; for example, the 5-digit number, 15234, is 1 through 5 pandigital.The product 7254 is unu
2013-04-11 22:59:32
744
原创 [Euler]Problem 30 - Digit fifth powers
Surprisingly there are only three numbers that can be written as the sum of fourth powers of their digits:1634 = 14 + 64 + 34 + 448208 = 84 + 24 + 04 + 849474 = 94 + 44 + 74 + 44As 1 = 14
2013-04-09 21:58:43
820
原创 [Liferay]使用Spring MVC开发Portlet应用
开发环境IDE : Liferay Developer Studio Version: 1.6.1.v201212111822Liferay : liferay-portal-6.0-ee-sp1server : tomcat-6.0.29plugin sdk :
2013-04-09 16:46:47
2769
原创 [Liferay]liferay hooks exercise startup
EXERCISE: CREATE A CUSTOM FIELDLet’s create the user’s custom field first:With the server up and running, log in as an administrator.Go to Control Panel → Portal → Custom Fields.Click on the Use
2013-04-02 16:00:13
2249
原创 [Liferay]liferay hooks overview and exercise
Hook overviewHooks were introduced in Liferay 5.1 as an alternate developmentapproach to the Liferay Extension Environment.Hooks are a type of Liferay Plugin and were designed to be smallerin si
2013-03-29 14:33:29
1296
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人