论坛首页 Web前端技术论坛

grails+flex写hello

浏览 2361 次
该帖已经被评为隐藏帖
作者 正文
   发表时间:2008-03-03  
\项目名grails-app\services
class HelloService {

    boolean transactional = true

    static expose = ['flex-remoting']

    def hello() {
        return "Hello World!!!"
    }

}


在就是flex这边
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

    <mx:RemoteObject id="ro" destination="helloService"/>
	
    <mx:Button label="Hello" click="ro.hello()"/>
    <mx:TextInput text="{ro.hello.lastResult}"/>
	
</mx:Application>



本人也是刚刚学希望大家多多交流
   发表时间:2008-07-16  
不知道为什么访问mxml编译出的xxx.html不行,而访问xxx.mxml就可以
0 请登录后投票
论坛首页 Web前端技术版

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