RemotingConnector
http://d.hatena.ne.jp/habuakihiro/20040127#p4
をみて早速使ってみました。
- *.mxpをインストールする。Extension Managerがインストール
されてなかったら先にインストールしておく。
Remoting ComponentツリーのRemotingConnectorを適当にDnDする。
- 名前を適当にremotingConnectorとつけ、パラメータタブで
パラメータを設定する。
-
- gatewayUrl:http://localhost:8080/examples/gateway
- method:executeRulet
- service:examples.org.seasar.nazuna.AddRulet
- バインディングタブでバインディングを追加の選び、
resultsを追加する。
- LabelコンポーネントをフォームにDnDし適当に名前を付ける。
- バインディングを追加し、textを選ぶ。
- さらにbound toでremotingConnectorのresultsを選ぶ。
- フォームの第1フレームに以下のように記述する。
- this.remotingConnector.params[0] = 1;
- this.remotingConnector.params[1] = 2;
- this.remotingConnector.trigger();
V2コンポーネントののりってこんな感じなのね。
gatewayUrlをコンポーネントごとに指定させるってどうよって気がしますが。