Code: Select all
@ManyToOne(targetEntity = Media.class)
@JoinColumn(name = "MEDIA_ID")
@AdminPresentation(friendlyName = "Image", order = Presentation.FieldOrder.Image, fieldType = SupportedFieldType.MEDIA,
group = Presentation.Group.Name.General, groupOrder = Presentation.Group.Order.General)
@AdminPresentationToOneLookup()
private Media image;
It does have a lookup button shown on the UI and the image list comes up when click on this button, but it doesn't show the thumnail image, and the popup image selection dialog doesn't show the thumnail images either. It looks very different than that primary image on product entity page. I compare SkuImpl and my entity and AdminProductController and MyEntityController, I couldn't figure out what goes wrong or what I missed.
Can anyone point me to the direction where it went wrong?
Thanks.
-Charlie