原创 liferay上傳圖片並展示,guest可見

1.jsp中的form的 enctype="multipart/form-data" 2.後臺接收參數UploadPortletRequest uploadRequest = PortalUtil .getUploadPortle

原创 liferay在自己的portlet中上傳更改用戶頭像

<% User selUser = PortalUtil.getSelectedUser(request); selUser = PortalUtil.getUser(request); String currentURL = Port

原创 Apache VirtualHost 啓動失敗 無錯誤日誌解決

<VirtualHost *:80> ServerName "processmaker" DocumentRoot E:/wamp/bin/processmaker/workflow/public_html DirectoryInd

原创 ProcessMaker配置變更或者同平臺遷移方案

轉自http://wiki.processmaker.com/index.php/Changing_the_ProcessMaker_Configuration Changing the ProcessMaker Configura

原创 Liferay PortletURL in JavaScript

Each more we feel the need of becoming more and more web 2.0, it sounds like a physics law to the "guys" that are tryin

原创 linux安裝swftools

wget http://www.swftools.org/swftools-0.9.1.tar.gz tar zxvf swftools-0.9.1.tar.gz wget http://nchc.dl.sourceforge.net/

原创 liferay6.2.2GA2中CKEditor在IE11與SAFARI中BUG解決方案

liferay version: 6.2.2_GA2 ckeditor_within_liferay version:4.0.3 ckeditor_latest_version:4.4.7 因爲最近用liferay6.2做的網站正在給客戶

原创 手機QQ瀏覽器訪問liferay工程頁面異常解決

感謝冷月的幫助,本文是依照冷月的博客所寫。冷月博客地址 http://www.huqiwen.com/2014/09/18/exception-wap-portal-status-not-found/ 在EXT項目中修改 com.life

原创 瀏覽器中在線瀏覽pdf

由於pdf.js的瀏覽器兼容性不是特別好。所以考慮折中解決方案。將pdf轉爲swf 再在瀏覽器中顯示swf. pdf轉swf的工具參考 http://blog.csdn.net/xraydog/article/details/440159

原创 liferay6.2.2ga2 中的 搜索portlet的翻頁BUG修正

搜索結果展示頁中 如果記錄足夠多的時候 點擊左面的 限制結果集的條件後再點擊翻頁 會出現翻頁之後 限制結果集的條件 沒有被正確的傳遞。 修復辦法如下 在hook工程中修改\docroot\custom_jsps\html\portlet\

原创 本博客已搬家至www.stalvan.com csdn不再更新

本博客已搬家至www.stalvan.com csdn不再更新

原创 liferay ajax 後 renderRequest renderResponse爲空的替代解決方案

在liferay6.2的 mvcPortlet執行ajax請求後 jsp頁面的 renderRequest renderResponse  actionRequest actionResponse 爲空

原创 liferay6.2 linux環境ext刪除與重部署

cd your-tomcat-install # deleting web application rm -rf webapps/*-ext # deleting jars and config files from Liferay fi

原创 IE6789的只讀innerHTML

在ie6 7 8 9 中 innerHTML屬性是隻讀的。當對innerHTML進行賦值時會出runtimeError.最簡單的應對辦法是改用dom操作來賦值。或者是使用jquery$("#domId")

原创 liferay的jsp中獲取當前portlet的windowState

String windowStateStr = renderRequest.getWindowState().toString(); 如此 即可獲取當前portlet 的windowstate並用來判斷是否是最大化模式。