html5smartimage uses this. Have you looked into /libs/cq/ui/widgets/html5/form/SmartImage.js
bulan_, did you get a solution to your problem. I am trying the same and get a blank space for SmartFile. Can you please let me know how you solved this problem.
1 person found this helpful
afair the panel of the smartfile is initialized in its processRecord method. so if the method is never called the d&d panel is not going to be rendered. so the first thing to do, is to debug the processRecord method of your custom widegt (or compositeField in this case). sinse you are defining the SmartFile in a custom field, i dont believe its processRecord method is called. i suppose the composite field delegates the call only to the widgets defined in the items field.
Sultaned I still have a problem with smailfiele in multifield, but Igor's tip could be helpful