{ "id": "135309", "key": "ALOY-1221", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2018-06-27T08:18:16.000+0000", "created": "2014-08-26T12:52:27.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "TCSupportTriage" ], "versions": [], "issuelinks": [], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2019-05-02T19:34:42.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13604", "name": "Tooling", "description": "Items related to Alloy tooling and workflow" }, { "id": "12333", "name": "Widgets" }, { "id": "12326", "name": "XML", "description": "View XML and parsing" } ], "attachment": [], "flagged": false, "summary": "Support Widgets and Require in ListItem Templates", "creator": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK 3.3.0.GA,\r\nTitanium CLI 3.3.0,\r\nAlloy 1.4.1", "closedSprints": [ { "id": 1045, "state": "closed", "name": "2018 Sprint 13 SDK", "startDate": "2018-06-17T20:47:13.621Z", "endDate": "2018-07-01T20:47:00.000Z", "completeDate": "2018-07-02T18:40:05.029Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "331386", "author": { "name": "yeelan0319", "key": "yeelan0319", "displayName": "Yiran Mao", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "yeelan0319", "key": "yeelan0319", "displayName": "Yiran Mao", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-10T16:34:00.000+0000", "updated": "2014-11-10T16:34:00.000+0000" }, { "id": "337938", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "I think this ticket should also be expanded to include the Module element inside the template as well, e.g.\r\n{code}\r\n\r\n{code}\r\nUsing SDK 3.4.1.GA and Alloy 1.5.1 on iOS I am not getting any compile or runtime errors, but the module proxy (e.g. createPaintView in the example above) is just not getting called.\r\nI'm trying to create a Facebook Like button per list item - to no avail :(", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2015-01-06T01:10:32.000+0000", "updated": "2015-01-06T01:11:19.000+0000" }, { "id": "338140", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "Is this issue due to Alloy or the ListView implementation in the SDK? And why is this still a Titanium Community issue since August?", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2015-01-07T06:02:26.000+0000", "updated": "2015-01-07T06:02:26.000+0000" }, { "id": "338156", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "There's a mix of limitations going on here. \r\n\r\n* The Alloy compiler doesn't currently support using widgets and require in templates. See ALOY-1220 and read through Tony's comments on ALOY-611 (which led to the creation of this ticket).\r\n* The SDK supports just a limited set of View proxies as children of ListItem, see the list at http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.ListItem I'm pretty sure there's a TIMOB ticket directly related to using modules (that expose view proxies) as children of listitems. But the best I can find at the moment is TIMOB-15091\r\n\r\nI've moved this ticket to the Alloy project but I can't make commitments on when we'll get a chance to work on it considering our other priorities on the Tooling team.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2015-01-07T14:42:48.000+0000", "updated": "2015-01-07T14:42:48.000+0000" }, { "id": "338157", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "[~skypanther] please change the title to \"Support Widgets, Require, and Module in....\"\r\nThanks", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2015-01-07T14:43:11.000+0000", "updated": "2015-01-07T14:43:11.000+0000" }, { "id": "338164", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "Here is an example of requested functionality:\r\nIn my [Facebook module|https://github.com/mokesmokes/titanium-ios-facebook] I am exposing a View proxy for the Like Button.\r\nI want a Like button per ListItem, e.g.\r\n{code}\r\n\r\n \t\r\n \r\n\r\n{code}\r\n\r\nThen in the controller code (and perhaps binding with the collection of teams) I want to set the Like Button's objectId (a property on the like) to \"https://www.facebook.com/NYKnicks\" and enable the user to like one of the NBA teams in the list.\r\n\r\nCurrently this doesn't work - fb.createLikeButton() is not called, no support in the SDK and Alloy.", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2015-01-07T15:08:14.000+0000", "updated": "2015-01-07T15:33:02.000+0000" }, { "id": "338340", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "The challenge is that your {{