`
16615367
  • 浏览: 2699 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
社区版块
存档分类
最新评论

liferay 网上资料整理

阅读更多
liferay的布局为2 列时,如何控制一列不刷新

自定义布局的20:80,左列使用site-map做导航,如何实现在点左列导航时不刷新左列,只有点主菜单时才刷新左列。
因为layout定义如下:

$processor.processColumn("column-1")

$processor.processColumn("column-2")

如果去掉第一列的$processor.processColumn("column-1")确实是不刷新该列,但是加载的site-map却不能执行。见附件
请问有没有好的实现办法。



liferay4.2中,提供了一个很强大的ajax工具集,能让开发者轻松的实现ajax效果。
但是到了版本5.1,这个ajax工具集被废弃了,而是推荐使用jquery的ajax api。
其实目前使用5.1版本以下的liferay还是挺多的。我目前还是使用的liferay4.3.3,去年选择的版本,也一直没有升级。
    因此在此简单的说一下,我是如何在liferay4.3.3中实现ajax效果。
Js代码

   AjaxUtil.request(url,{onComplete:function(xmlHttpReq)  
       {  
            function doSomething(xmlHttpReq.responseText);        
       }  
   }  
   );  
          
    function doSomething(xmlText){  
  }  

	AjaxUtil.request(url,{onComplete:function(xmlHttpReq)
		{
			function doSomething(xmlHttpReq.responseText);		
		}
	}
	);
		
	function doSomething(xmlText){
	}



url:指定相应的后台访问路径。
需要注意的是,url路径中指向的action类需要继承AJAXAction类,
action类在方法getXML中返回需要的字符串。
function doSomething()可以根据返回的字符串完成相应的页面操作。

AjaxUtil还有其他几种方法,update(),submit()等。
更详细的用法可以去分析js\liferay\ajax.js文件。




http://issues.liferay.com
http://blog.csdn.net/chg2008/category/362178.aspx
http://fly-ever.iteye.com/blog/202532
http://www.iteye.com/wiki/topic/248260
http://topic.csdn.net/t/20061213/17/5228469.html
http://www.iteye.com/problems/8051
http://www.iteye.com/wiki/problem/8051
















http://www.liferay.com/web/guest/downloads/community_plugins/-/software_catalog/products?_98_tabs1TabsScroll=&_98_keywords=jbpm&_98_type=
http://www.liferay.com/web/guest/downloads/community_plugins/-/software_catalog/products?_98_type=&_98_delta=20&_98_keywords=&_98_advancedSearch=false&_98_andOperator=true&_98_orderByCol=type&_98_orderByType=asc&cur=5
http://www.liferay.com/web/guest/downloads/community_plugins/-/software_catalog/products?_98_type=&_98_delta=20&_98_keywords=&_98_advancedSearch=false&_98_andOperator=true&_98_orderByCol=type&_98_orderByType=asc&cur=4
http://www.liferay.com/web/guest/downloads/community_plugins/-/software_catalog/products?_98_type=&_98_delta=20&_98_keywords=&_98_advancedSearch=false&_98_andOperator=true&_98_orderByCol=type&_98_orderByType=asc&cur=3
http://www.liferay.com/web/guest/downloads/community_plugins/-/software_catalog/products/2030285?_98_redirect=%2Fweb%2Fguest%2Fdownloads%2Fcommunity_plugins%2F-%2Fsoftware_catalog%2Fproducts%3F_98_type%3D%26_98_cur%3D1%26_98_delta%3D20%26_98_keywords%3D%26_98_advancedSearch%3Dfalse%26_98_andOperator%3Dtrue%26_98_orderByCol%3Dtype%26_98_orderByType%3Dasc
http://www.liferay.com/web/guest/downloads/community_plugins/-/software_catalog/products?_98_type=&_98_delta=20&_98_keywords=&_98_advancedSearch=false&_98_andOperator=true&_98_orderByCol=type&_98_orderByType=asc&cur=2
http://www.liferay.com/web/guest/downloads/community_plugins/-/software_catalog/products?_98_type=&_98_cur=1&_98_delta=20&_98_keywords=&_98_advancedSearch=false&_98_andOperator=true&_98_orderByCol=type&_98_orderByType=asc
http://www.liferay.com/web/guest/downloads/community_plugins
http://www.liferay.com/web/guest/downloads/official_plugins/-/software_catalog/products?_98_type=&_98_cur=1&_98_delta=20&_98_keywords=&_98_advancedSearch=false&_98_andOperator=true&_98_orderByCol=type&_98_orderByType=desc
http://www.liferay.com/web/guest/downloads/official_plugins
http://www.liferay.com/c/blogs/find_entry?entryId=2144134
http://www.liferay.com/c/blogs/find_entry?entryId=2303411
http://www.liferay.com/web/guest/news/latest/-/blogs/2144134
http://www.liferay.com/web/guest/news/latest/-/blogs/2303411
http://www.liferay.com/web/guest/downloads
http://www.liferay.com/web/guest/downloads/portal
http://www.liferay.com/
http://issues.liferay.com/login.jsp?os_destination=%2Fsecure%2FViewProfile.jspa%3Fname%3Dsupport-lep%2540liferay.com
http://www.liferay.com/web/guest/home
http://blog.csdn.net/chg2008/archive/2008/06/23/2580467.aspx
http://blog.csdn.net/chg2008/archive/2008/06/25/2587024.aspx
http://blog.csdn.net/chg2008/category/362178.aspx
http://blog.csdn.net/chg2008/archive/2008/02/27/2124853.aspx
http://liferay.group.iteye.com/group/blog/196719
http://devilbaby.iteye.com/blog/163631
http://www.google.cn/search?q=liferay+plugin%E5%BC%80%E5%8F%91&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:zh-CN:official&client=firefox-a
http://www.liferay.com/web/guest/home?p_p_id=77&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_77_struts_action=%2Fjournal_content_search%2Fsearch
http://fly-ever.iteye.com/blog/202532
http://fly-ever.iteye.com/blog/248260
http://www.iteye.com/wiki/topic/248260
https://www.liferay.com/zh_CN/web/guest/community/wiki/-/wiki/Main/%E4%BD%BF%E7%94%A8Portal
http://topic.csdn.net/t/20061213/17/5228469.html
http://www.google.cn/search?hl=zh-CN&client=firefox-a&rls=org.mozilla%3Azh-CN%3Aofficial&hs=6rs&newwindow=1&q=liferay+portlet+%E6%8B%96%E5%8A%A8&btnG=Google+%E6%90%9C%E7%B4%A2&meta=&aq=f&oq=
http://www.iteye.com/problems/8051
http://www.iteye.com/wiki/problem/8051
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics