Provide helper methods to replace a string from multiple replaced strings to multiple substitutes import java.util.regex.Matcher; import java.util.regex.Pattern; public class StringHelper { /** * This is test method to replace a string from: * aaa >…
问题描述 在Portlet中,Javascript中通过Liferay.Language.get("key")的方式是拿不到自己添加的property的值,原因是Liferay.Language是从portal的language property中去找的,对于portlet的property是不理睬的,所以解决方案是通过hook去添加property,这里你不用担心portal property会造成性能的问题: Liferay provides a way to get the va…
以admin的帐号登陆 Navigation to Users and Organizations -> All Users 找到你要查看的user,点击Actions->Impersonate User,记录url中?之后的数据,likedoAsUserId=xxxxxx 进入你要到的页面,比‵my account',如果页面的url有parameter就在url最后加上&doAsUserId=xxxxxx,没有的话需要多加一个问号…
http://www.onjava.com/pub/a/onjava/2001/05/30/optimization.htmlComparing the performance of LinkedLists and ArrayLists (and Vectors) (Page last updated May 2001, Added 2001-06-18, Author Jack Shirazi, Publisher OnJava). Tips: ArrayList is faster than…