Community
Participate
Working Groups
As soon History.js is initialized, a timer checks the browser location every 100ms. The implentation should be updated to only enable these check if there is an actual BrowserHistoryListener registred on the server.
This would require BrowserHistory.java to write a protocol message to listen to history events (on display?). Since it has no LCA, i'm not sure what would be the best way to implement and test this. Ideas?
History.js is a singleton. We could deal with it like with other singletons (UICallBack for example). Register History.js as a predefined object on the client, create an adapter and add a "navigation" listener to it. More over, server-side BrowserHistory class still renders javascript (qx.client.History.getInstance().addToHistory). We have to change it with a protocol message too.
Switched BrowserHistory to the protocol and start the timer only when there is a listener attached. Changes are in CVS HEAD.