|Re: [Neon] - insert dynamic image into menu without being icons. [message #1810823 is a reply to message #1766708]
||Tue, 20 August 2019 08:47
| Krzysztof Leja
Registered: April 2019
In my Scout application I would like to do a very similar thing: present in the desktop menu, dynamically determined avatar from a graphic file downloaded ad-hock from the Internet. I referred to the above-mentioned example BuddyAvatarIconProviderService.java, but I have the following problem with it. During desktop initialization, the icon content (using the loadLocalAvatarIconSpec method) is downloaded twice by a web browser:
- Initial POST request, where in the above-mentioned loadLocalAvatarIconSpec method, the ClientSession.get() call returns the session object, and thus further download of the image content is done correctly.
- Second GET method, where in the above-mentioned loadLocalAvatarIconSpec method, the ClientSession.get () call returns NULL, and thus the icon content cannot be read (in the session object I store information necessary to download the icon). This finally results in the avatar not being displayed in the menu.
Why does the ClientSession.get() method return NULL while handling this second GET request?
How to solve this problem?
Powered by FUDForum
. Page generated in 0.05182 seconds