{ "id": "116171", "key": "ALOY-713", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15403", "description": "Alloy 1.3.0", "name": "Alloy 1.3.0", "archived": false, "released": true, "releaseDate": "2013-12-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-08-01T16:47:11.000+0000", "created": "2013-06-19T14:07:43.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-11T20:40:12.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13605", "name": "Models" }, { "id": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" }, { "id": "12332", "name": "Titanium SDK", "description": "Any integration or issues with the TiSDK" } ], "description": "h2. problem\r\n\r\nIn the following test case, the TabbedBar will not show in the data bound TableViewRows. It does however show up when data binding is removed. Upon inspection of the generated code, it appears that the Labels array is not being generated.\r\n\r\n{code:javascript}\r\nvar __alloyId10 = [];\r\nvar __alloyId17 = Ti.UI.iOS.createTabbedBar({\r\n labels: __alloyId10,\r\n left: \"50\",\r\n top: \"10\"\r\n});\r\n{code}\r\n\r\nh2. test case\r\n\r\nh4. app/alloy.js\r\n{code:javascript}\r\nvar feed = Alloy.Collections.feed = new Backbone.Collection();\r\nfeed.reset([\r\n\t{first:'first',second:'second',third:'third',fourth:'fourth'},\r\n\t{first:'first',second:'second',third:'third',fourth:'fourth'},\r\n\t{first:'first',second:'second',third:'third',fourth:'fourth'},\r\n\t{first:'first',second:'second',third:'third',fourth:'fourth'},\r\n\t{first:'first',second:'second',third:'third',fourth:'fourth'}\r\n]);\r\n{code}\r\n\r\nh4. index.xml\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nh4. index.js\r\n{code:javascript}\r\n$.index.open();\r\n\r\nAlloy.Collections.feed.trigger('change');\r\n{code}", "attachment": [], "flagged": false, "summary": "TabbedBar not showing in data bound TableViewRow", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Alloy 1.2.0\r\niOS 6.1 iPhone sim", "comment": { "comments": [ { "id": "264441", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/alloy/pull/207\r\ntest app: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-713\r\n\r\nfunctional testing can pass by doing the following:\r\n\r\n# run the app on ios\r\n# confirm that it loads without error\r\n# confirm that the tabbedbars appear in each \"first row\"\r\n# confirm that the buttons in each tabbedbar reflect the static and bound values that are expected. In this case, they should be \"tab 1\", \"fourth\", and \"tab 3\" respectively.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-01T16:47:11.000+0000", "updated": "2013-08-01T16:47:11.000+0000" }, { "id": "274827", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed. \n\nAlloy 1.3.0\nCLI 3.2.0\nTiSDK 3.2.0.v20131010163242\nTitanium Studio 3.1.4\n\nClosing", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-11T20:39:54.000+0000", "updated": "2013-10-11T20:39:54.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }