Ignore:
Timestamp:
03/25/10 08:50:42 (14 years ago)
Author:
patdui
Message:
  • more little bug fixes and layout changes, trying to use shibboleth for authorisation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/BrowserService.as

    r260 r281  
    11package clarin.cmdi.componentregistry.services {
    22        import clarin.cmdi.componentregistry.common.ItemDescription;
    3        
     3
    44        import mx.collections.ArrayCollection;
    55        import mx.controls.Alert;
     
    2222                [ArrayElementType("ItemDescription")]
    2323                public var itemDescriptions:ArrayCollection;
    24                
     24
    2525                private var serviceUrl:String;
    2626
    27         // Not bindable needed for lookups over the whole collections of itemDescriptions
    28                 protected var unFilteredItemDescriptions:ArrayCollection; 
     27                // Not bindable needed for lookups over the whole collections of itemDescriptions
     28                protected var unFilteredItemDescriptions:ArrayCollection;
    2929
    3030
    3131                public function BrowserService(restUrl:String) {
    32                     this.serviceUrl = restUrl;
     32                        this.serviceUrl = restUrl;
    3333                        service = new HTTPService();
    3434                        service.method = HTTPRequestMessage.GET_METHOD;
    3535                        service.resultFormat = HTTPService.RESULT_FORMAT_E4X;
    3636                }
    37                
     37
    3838                private function initService():void {
    39                         service.url = serviceUrl + "?"+new Date().getTime();
     39                        service.url = serviceUrl + "?" + new Date().getTime();// +";JSESSIONID="+Config.instance.sessionId;
    4040                }
    4141
    4242                public function load():void {
    43                     initService();
     43                        initService();
    4444                        var token:AsyncToken = this.service.send();
    4545                        token.addResponder(new Responder(result, fault));
     
    5353
    5454                public function fault(faultEvent:FaultEvent):void {
    55                         var errorMessage:String = StringUtil.substitute("Error in {0}: {1} - {2}", this, faultEvent.fault.faultString, faultEvent.fault.faultDetail);
     55                        var errorMessage:String = StringUtil.substitute("Error in {0}: Message: {1} \n Fault: {2} - {3}", this, faultEvent.message, faultEvent.fault.faultString, faultEvent.fault.faultDetail);
    5656                        Alert.show(errorMessage);
    5757                }
     
    6161                        unFilteredItemDescriptions = new ArrayCollection(); //create a copy
    6262                        for each (var item:Object in items) {
    63                 unFilteredItemDescriptions.addItem(item);                   
     63                                unFilteredItemDescriptions.addItem(item);
    6464                        }
    6565                }
Note: See TracChangeset for help on using the changeset viewer.