Community
Participate
Working Groups
The BrowserRidget should provide a setText-method to supply a html-String.
Hi Steffen, I've committed browserRidget.setText(...). One issue I still have with this code is that there is no synchronisation for page loading, which happens asynchronously. In my experiments, I had undefined results in the scenario below. (I modified the SnippetBrowserRidget to have two buttons, one for ridget.setText and one for ridget.setUrl) - start loading a url (best: a big page like techcrunch.com) - while page loads invoke ridget.setText(...) - browser finishes loading the page and processes that - result: ? If you use ridget.setText(...) when initializing the controller this should not be a problem. If you run into issues please report them here and I will work with you in finding a solution. Unfortunatelly there is little in terms of API to cancel pending page processing, but I might be able to delay / queue things. However I would only like to add this complexity if needed.
Thanks Elias,works like a charm :-) We only want to provide a static html-String from the controller, so this will be sufficient.