Changeset 260
- Timestamp:
- 03/19/10 14:49:56 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/BrowserService.as
r224 r260 22 22 [ArrayElementType("ItemDescription")] 23 23 public var itemDescriptions:ArrayCollection; 24 25 private var serviceUrl:String; 24 26 25 27 // Not bindable needed for lookups over the whole collections of itemDescriptions … … 28 30 29 31 public function BrowserService(restUrl:String) { 30 this.service = new HTTPService(); 31 this.service.method = HTTPRequestMessage.GET_METHOD; 32 this.service.resultFormat = HTTPService.RESULT_FORMAT_E4X; 33 this.service.url = restUrl; 32 this.serviceUrl = restUrl; 33 service = new HTTPService(); 34 service.method = HTTPRequestMessage.GET_METHOD; 35 service.resultFormat = HTTPService.RESULT_FORMAT_E4X; 36 } 37 38 private function initService():void { 39 service.url = serviceUrl + "?"+new Date().getTime(); 34 40 } 35 41 36 42 public function load():void { 43 initService(); 37 44 var token:AsyncToken = this.service.send(); 38 45 token.addResponder(new Responder(result, fault));
Note: See TracChangeset
for help on using the changeset viewer.