Hi Folks,
I struggled with the Development Recipe for image handling under 6.6. Seems an out-of-date / incorrect statement in the Edit Screen Controller code excerpt at:
[url=]https://doc.cuba-platform.com/manual-6.6/images_recipe.html[/url]
Under the displayImage() method, the getter statement at Line 91 reads:
image.setSource(Image.FileDescriptorImageResource.class).setFileDescriptor(getItem().getImageFile());
and should perhaps read:
image.setSource(image.createResource(FileDescriptorResource.class).setFileDescriptor(getItem().getImageFile()));
Rgds
Simon