Results 1 to 5 of 5

Threaded View

  1. #3
    Quote Originally Posted by giuseppe.corti View Post
    Hi flybyGWT,

    I confirm you that the Lightstreamer JavaScript Client library already handles the process of update at Item level.
    Please refer to this piece of code of our GWT demo:




    The event with which you are receiving an update is unique regardless of how many fields have changed for that Item. The object ItemUpdate allows you to navigate between fields that have actually undergone a change of value. At that point, as you have already noticed, our demo calls for each of these fields a single event to update the GWT FlexTable.

    To achieve your goal, you have to change this behavior, by updating your internal cache of the Item for every updated field and then passing to the CellTable the complete row with updated values.
    Something like this:



    By the way, I confirm you that the Lightstreamer server does not use JSON to send updates to the client, but a specific and optimized protocol.

    Thank you for the reply. In the example you provided you would then on the GWT implementation side define the onItemUpdate(Ljava/lang/String make a call to the LightStreamer client cache with mySub.getItems(itemName) and then pass off the data to the various DataProviders?


    My thought was to use



    Then do field/value pair update -> GWT java bean updates though deferred binding field/value mapping package.


    In the case of having a super data set and multiple subData sets (views of the super set). Would you suggest having a separate subscription for each data set including the sub and suppers, or have the super set be the only subscriber which in client pub/sub down to the subDatasets? Or is there a even more efficient way build into LS already?
    Last edited by flybyGWT; February 13th, 2014 at 03:38 PM.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 11:11 PM.