Class WSDataSource

All Implemented Interfaces:
HasHandlers, HasDataChangedHandlers, HasHandleErrorHandlers

public class WSDataSource extends DataSource
A WSDataSource is a DataSource that is preconfigured to contact the WSDL web service built into the SDK (see isomorphic/system/schema/SmartClientOperations.wsdl). This WSDL service can be easily implemented on Java and non-Java backends.

WSDataSource supports all 4 DataSource operations (fetch, add, update, remove) and can be used with ListGrids, DynamicForms and other DataBoundComponents just like other DataSources.

Note that WSDataSource is specifically designed for use with SmartClientOperations.wsdl. If you are trying to connect to a pre-existing WSDL service, start with just DataSource, not WSDataSource, and see the WSDL Integration chapter for an overview.

  • Constructor Details

    • WSDataSource

      public WSDataSource()
    • WSDataSource

      public WSDataSource(JavaScriptObject jsObj)
  • Method Details

    • getOrCreateRef

      public static WSDataSource getOrCreateRef(JavaScriptObject jsObj)
    • create

      public JavaScriptObject create()
      Overrides:
      create in class DataSource
    • setDefaultProperties

      public static void setDefaultProperties(WSDataSource wSDataSourceProperties)
      Class level method to set the default properties of this class. If set, then all existing and subsequently created instances of this class will automatically have default properties corresponding to the properties set on the SmartGWT class instance passed to this function before its underlying SmartClient JS object was created. This is a powerful feature that eliminates the need for users to create a separate hierarchy of subclasses that only alter the default properties of this class. Can also be used for skinning / styling purposes.

      Note: This method is intended for setting default attributes only and will affect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead. Calling this method after instances have been created can result in undefined behavior, since it bypasses any setters and a class instance may have already examined a particular property and not be expecting any changes through this route.

      Parameters:
      wSDataSourceProperties - properties that should be used as new defaults when instances of this class are created
      See Also: