[ALOY-1310] Alloy: Picker not working in ListView template

GitHub Issuen/a
Resolution Date2015-10-09T04:46:11.000+0000
Affected Version/salloy 1.7.15
Fix Version/salloy 1.7.16, Release 5.0.3
Labelsalloy, itemtemplate, listview, picker
ReporterHans Knöchel
AssigneeFeon Sua Xin Miao


I use a Picker inside a itemTemplate in a ListView. When not using any eventListener, the picker works (but is useless). Once i assign an event like onChange="doSomething", the app crashed when being opened and says: "undefined is not an object (evaluating '$.__views.picker.addEventListener')"; Expected behaviour: The picker inside a ListView can have events. Given behaviour: The picker inside a ListView cannot have events and the app crashes immediately. Example code will be available soon!


  1. Hans Knöchel 2015-03-07
  2. Hans Knöchel 2015-03-30 We have a ciritical client request on this thing, is there any workaround to handle this? Maybe a special wrapping-view?
  3. Feon Sua Xin Miao 2015-10-08 PR: https://github.com/appcelerator/alloy/pull/728
  4. Praveen Innamuri 2015-10-09 PR merged.
  5. Lokesh Choudhary 2015-10-12 Verified the fix. Used the code above to test. The app does not crash anymore. Closing. Environment: Appc Studio : Ti SDK : 5.0.2 Ti CLI : 5.0.5 Alloy : 1.7.16 MAC Yosemite : 10.10.4 Appc NPM : 4.2.0 Appc CLI : 5.0.3-14 Node: v0.10.37 Iphone 5S Simulator : IOS 8.1

JSON Source