[Neon] - insert dynamic image into menu without being icons. [message #1763899] |
Mon, 22 May 2017 13:24  |
Eclipse User |
|
|
|
Good afternoon,
I'm using Scout 6 in the neon eclipse.
I have the following problem, I need to create in the menu bar of the desktop an avatar that can be changed by the image that is saved in the database.
The abstractMenu does not allow to insert image, only icons already registered. Is there any way to load an image into a menu without being an icon?
|
|
|
|
|
Re: [Neon] - insert dynamic image into menu without being icons. [message #1810823 is a reply to message #1766708] |
Tue, 20 August 2019 04:47   |
Eclipse User |
|
|
|
Hi,
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.
My question:
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.05253 seconds