Well, in the same document you can find a great programming API - setSource() method. Therefore, it is easy to set image URL programmatically like this:
URL url = new URL("https://cuba-platform.com/uploads/f12d77fb869f4ee48e27faae2f82178b.jpg");
imgTest.setSource(UrlResource.class).setUrl(url);
I am actually looking for a more direct approach using the XML. Anyway, based on your example, the URL is still hard coded and not retrieved from the Entity. From the document section, I am also having trouble looking where to put the code and how to access entity attributes.
It’s a good point. I’m not sure if it is possible with XML, but you can do everything programmatically even add an image to the data table like described here.
I don’t get it. Do you want to add images to browser or editor? Could you describe your case and attach a desired screen layout please?
If you want to show images in both browser and editor, you have all the samples you need. It might look like snippets below (I haven’t checked it though).
Thanks for the example I was able to update the browser. For the editor, it is not clear in the document how to specify the target component in the XML editor. For example, I have this field definition: