Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1220] Widgets can not be used in ListView Templates

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusResolved
ResolutionDuplicate
Resolution Date2018-06-27T08:17:52.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTooling, Widgets, XML
Labelsn/a
ReporterBert Grantges
AssigneeFeon Sua Xin Miao
Created2014-08-07T03:20:19.000+0000
Updated2018-06-27T08:17:53.000+0000

Description

When leveraging templates in a ListView, the alloy compiler fails when trying to compile an ItemTemplate that contains a Widget tag.

Attachments

FileDateSize
BugSample.zip2016-01-26T19:08:23.000+0000831736

Comments

  1. Tim Poulsen 2015-01-07

    Note: Due to SDK limitations, this will work only for Widgets exposing one of the supported View classes, see list at http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.ListItem
  2. Blackbaud MobileDev 2017-02-06

    The deeper problem is that even if your widget's top level view is a ListItem. You still cannot have Widget tags inside of that list item. This still crashes the compiler. Thus you can't use widgets in a ListView :( which limits the re-usability of your widget functionality.
  3. Hans Knöchel 2018-06-27

    Fixed as part of ALOY-1518 and related tickets for SDK 7.4.0.

JSON Source