Flex4使用RemoteObject时前台传递参数与服务器方法参数映射
2013-07-08 10:34
253 查看
没有映射会出现类似下面的错误:
The expected argument types are (....)
but the supplied types were (flex.messaging.io.amf.ASObject)
and converted to (null)
解决方法:前台传递的参数对象需要添加元数据申明
[Bindable]
[RemoteClass(alias="com.card.entity.Users")]
public class Users
{
public var id:int;
....
}
The expected argument types are (....)
but the supplied types were (flex.messaging.io.amf.ASObject)
and converted to (null)
解决方法:前台传递的参数对象需要添加元数据申明
[Bindable]
[RemoteClass(alias="com.card.entity.Users")]
public class Users
{
public var id:int;
....
}
相关文章推荐
- attachEvent的使用方法与传递参数[IE|firefox]
- mybatis 关联映射传递多参数方法
- [ExtJS5学习笔记]第二十一节 Extjs5中使用config配置给ext.widget或者create方法传递参数
- springMVC使用PUT、DELETE方法传递参数解决方案
- Rundll32.exe原理及使用, 参数传递问题解决方法(可用于批处理中)
- jsp中使用POST的方法在网页之间传递参数的简单方法
- 在数据绑定控件中使用LinkButton传递参数方法
- [ExtJS5学习笔记]第二十一节 Extjs5中使用config配置给ext.widget或者create方法传递参数
- 【jQuery】控制节点,仅在前台通过get方法完成参数传递
- spring mvc 前台向后台传递参数方法总结
- 在使用get访问服务器时参数为乱码的解决方法
- 使用xmlhttp.send()方法的参数来传递大容量的数据
- [ExtJS5学习笔记]第二十一节 Extjs5中使用config配置给ext.widget或者create方法传递参数
- Post、Get方法向服务器传递参数
- 回发或回调参数无效。在配置中使用 或在页面中使用 启用了事件验证。出于安全目的,此功能验证回发或回调事件的参数是否来源于最初呈现这些事件的服务器控件。如果数据有效并且是预期的,则使用 ClientScriptManager.RegisterForEventValidation 方法来注册回发或回调数据以进行验证。
- c++11使用 async异步函数并传递参数以及auto的使用方法
- 使用soap协议调用服务器借口 方法名传递是大小写敏感的
- Qt中使用QHttp连接网站服务器,并传递参数
- volley框架下,使用post方式请求服务器,传递参数和头
- 在控制器的Action中,如何直接使用JsonResult方法中传递到前台的对象