论坛首页 入门技术论坛

dwr.xml 配置

浏览 2441 次
锁定老帖子 主题:dwr.xml 配置
该帖已经被评为新手帖
作者 正文
   发表时间:2009-07-12   最后修改:2010-12-05
DWR
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN" "http://getahead.org/dwr/dwr20.dtd">
<dwr>
	<allow>
	
		<!-- 配置桌面引用接口 -->
		<create creator="spring" javascript="hereClasses">
			<param name="beanName" value="iReady"/>
			<include method="getBigClassList"/>
			<include method="getMiddleClassList"/>
			<include method="getSmallClassList"/>
			<include method="getProductParameter"/>
		</create>
		
		<create creator="spring" javascript="hereArea">
			<param name="beanName" value="iArea"/>
			<include method="getCountryList"/>
			<include method="getCityList"/>
			<include method="getProvinceList"/>
		</create>
		
		
		<!-- 创建dwr对象 -->
		<create creator="new" javascript="hereClass">
			<param name="class" value="cn.com.hello.bean.ProductCatalog"/>
		</create>
		<create creator="new" javascript="productParameter">
			<param name="class" value="cn.com.hello.bean.ProductParameter"/>
		</create>
		<create javascript="area" creator="new">
			<param name="class" value="cn.com.hello.bean.Area"/>
		</create>
		
		
		
		<!-- 转换对象 -->
		<convert match="cn.com.hello.bean.ProductCatalog" converter="bean"/>
		<convert match="cn.com.hello.bean.ProductParameter" converter="bean"/>
		<convert match="cn.com.hello.bean.Area" converter="bean"/>
		<!-- 
			<param name="include" value="id, classId, higherUpClassId, name, levels"></param>
		 -->
	</allow>
</dwr>
论坛首页 入门技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics