Yes, DataSources can handle any kind of client-to-server and server-to-client data massaging that might be required - see dataProtocol:"clientCustom" for the most flexible approach, which gives completely arbitrary control over both format and timing of when requests and sent.
As we noted yesterday, we're already looking into the issues with mode #2, however, just for completeness, it still appears, even after your description, that mode #1 is the most appropriate. Again, it's inherent to your application that updates to the queue are being asynchronously saved to the server while additions from other users may arrive asynchronously at any time. It seems like in your current implementation you've somehow ended up at a point where synchronously updating the dataset simplifies things - we think it's likely that this is actually an artifact of your approach of using clientOnly DataSources and a globally simpler solution is possible.
Note also that you can actually make a synchronous update to the dataset even in mode #1 - you could take the current ResultSet and replace it with a new ResultSet using the same data plus whatever additions or changes you've made.
As we noted yesterday, we're already looking into the issues with mode #2, however, just for completeness, it still appears, even after your description, that mode #1 is the most appropriate. Again, it's inherent to your application that updates to the queue are being asynchronously saved to the server while additions from other users may arrive asynchronously at any time. It seems like in your current implementation you've somehow ended up at a point where synchronously updating the dataset simplifies things - we think it's likely that this is actually an artifact of your approach of using clientOnly DataSources and a globally simpler solution is possible.
Note also that you can actually make a synchronous update to the dataset even in mode #1 - you could take the current ResultSet and replace it with a new ResultSet using the same data plus whatever additions or changes you've made.
Comment