Where in the life cycle is it best to initialize a dojo property widget from the value that's stored in the database for that property?
My approach works fine if I go to "All properties" view and edit my property. The value that comes from the database is correct. However, when I click the property on page and the popup editor dialog (uiType floating) is displayed it looks like the value that comes into the _setValueAttr method is of type object and only contains the first item in the collection. What am I missing here?
You can look at the code for my widget in this Gist.
Solved. Had to add "multiple" property with true value to widget. Very odd and confusing behavior to take the first occurance in an array and mix it in if the multiple property is not defined and set to true.