posts - 431,  comments - 344,  trackbacks - 0
今天使用Select的时候,想在第一次显示的时候,就把数据显示出来。
其实只要设置Select的value为你想要显示的值,然后在调用Web Service中方法成功的时候使用repaint()就可以了!
例如:
service.ongetCountriesResultSuccess = function(objEvent) {
       objEvent.target.getServer().getJSXByName("country").repaint();
      //var responseXML = objEvent.target.getInboundDocument();
      //objEvent.target.getServer().alert("Success","The service call was successful.");
};

jsx3.gui.Painted

repaint()


method repaint()
Updates the view of this object by calling paint() and replacing the current view with the returned HTML. This method has no effect if this object is not currently displayed.

Returns:

{String} – the result of calling paint() or null if this object is not displayed.

See Also:

paint()
posted on 2007-03-30 15:52 周锐 阅读(274) 评论(0)  编辑  收藏 所属分类: TIBCO

只有注册用户登录后才能发表评论。


网站导航: