{
"id": "107939",
"key": "ALOY-466",
"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": "14872",
"description": "2013 Sprint 03",
"name": "2013 Sprint 03",
"archived": true,
"released": true,
"releaseDate": "2013-02-11"
}
],
"resolution": {
"id": "5",
"description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.",
"name": "Cannot Reproduce"
},
"resolutiondate": "2013-01-29T18:10:23.000+0000",
"created": "2013-01-16T06:59:47.000+0000",
"priority": {
"name": "High",
"id": "2"
},
"labels": [
"alloy",
"events",
"tableview",
"tableviewsection"
],
"versions": [],
"issuelinks": [
{
"id": "24615",
"type": {
"id": "10002",
"name": "Duplicate",
"inward": "is duplicated by",
"outward": "duplicates"
},
"inwardIssue": {
"id": "108004",
"key": "ALOY-492",
"fields": {
"summary": "Events are blocked in special cases in TableViewSection",
"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"
}
},
"priority": {
"name": "Medium",
"id": "3"
},
"issuetype": {
"id": "1",
"description": "A problem which impairs or prevents the functions of the product.",
"name": "Bug",
"subtask": false
}
}
}
}
],
"assignee": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"updated": "2014-01-29T00:07:11.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": "12329",
"name": "Runtime",
"description": "Generic bucket for uncategorized runtime issues"
},
{
"id": "12326",
"name": "XML",
"description": "View XML and parsing"
}
],
"description": "If you create a TableView in an Alloy View, and then populate it with TableViewRow's which are created from Alloy view files, then click events are not passed to the parent. NOTE: if you create rows in dynamically in code or pre-defined in the TableView.xml file, then click events are passed.\r\n\r\nref: [Q&A | http://developer.appcelerator.com/question/146467/alloy-tableviews-with-sections-not-passing-click-events]\r\n\r\ncode to reproduce:\r\n*index.xml*\r\n{code:title=index.xml |borderStyle=solid}\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\n*testRow.xml*\r\n(.js and .ts files are blank)\r\n\r\n{code}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n\r\n*index.js*\r\n\r\n{code:title=index.js}\r\n\r\nfunction rowWasClicked(e) {\r\n alert('you pressed me');\r\n}\r\n \r\nfor (var i = 0; i < 5; i++) {\r\n //$.activeSection.add(Ti.UI.createTableViewRow({title: 'row ' + (i+1)}));\r\n \r\n var args = {};\r\n var row = Alloy.createController('testRow', args).getView();\r\n //row.bubbleParent = true;\r\n \r\n $.activeSection.add(row);\r\n \r\n}\r\n \r\n$.index.open();\r\n{code}\r\n\r\n_notes_\r\n\r\n(tableViewRow.xml is code I took from the TableViewRow online doc.)\r\n\r\nIf I remove the View (in the row), it works perfectly. If the View is in place, then only the 1st row responds to taps. (Using the iOS simulator.) The other rows are silent. It seems that other elements () etc don't seem to cause a problem.\r\n\r\nAnd again, my table works perfectly IFF I don't use sections.\r\nI also found the behavior (good or bad) doesn't always respond to my changes in the code unless I do a 'project clean'.\r\n\r\nI also tried forcing $.view.bubbleParent = true but that didn't help anything.\r\n\r\nPlease let me know if you need more info or test cases.\r\n",
"attachment": [],
"flagged": false,
"summary": "Alloy TableViews with sections not reliably passing 'click' events ",
"creator": {
"name": "kenny",
"key": "kenny",
"displayName": "Joel Margolese",
"active": true,
"timeZone": "America/New_York"
},
"subtasks": [],
"reporter": {
"name": "kenny",
"key": "kenny",
"displayName": "Joel Margolese",
"active": true,
"timeZone": "America/New_York"
},
"environment": "Alloy 3.0.1 (I think, not sure how to find version)",
"comment": {
"comments": [
{
"id": "234877",
"author": {
"name": "ffadaie",
"key": "ffadaie",
"displayName": "farid fadaie",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Tony, Not sure if this is a duplicate of 1767 but I cross my fingers. Thanks for looking into it.\r\n\r\nSince this is rather blocking us, would you have any ETA?",
"updateAuthor": {
"name": "ffadaie",
"key": "ffadaie",
"displayName": "farid fadaie",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2013-01-17T22:36:05.000+0000",
"updated": "2013-01-17T22:36:05.000+0000"
},
{
"id": "234900",
"author": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "The fixVersion gives an indication of ETA. This is slated for Alloy 1.0.1. Alloy 1.0.0 is tentatively scheduled for mid-February.\n\nThe good thing about Alloy is that it is almost never technically \"blocking\". If you are unable to get the functionality you need in Alloy you can always fall back to constructing the table with sections in traditional Titanium code in your controller until this bug is fixed. ",
"updateAuthor": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2013-01-18T03:53:45.000+0000",
"updated": "2013-01-18T03:53:45.000+0000"
},
{
"id": "236451",
"author": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Can't reproduce. I ran the given test code against Titanium SDK 3.0.0.GA, both Alloy 1.0.0 and 0.3.6, and iOS sim 6.0 and both respond to clicks on all the rows in the section. Will reopen if a new failing test case is provided.",
"updateAuthor": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2013-01-29T18:10:23.000+0000",
"updated": "2013-01-29T18:10:58.000+0000"
},
{
"id": "236452",
"author": {
"name": "ffadaie",
"key": "ffadaie",
"displayName": "farid fadaie",
"active": true,
"timeZone": "America/Los_Angeles"
},
"updateAuthor": {
"name": "ffadaie",
"key": "ffadaie",
"displayName": "farid fadaie",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2013-01-29T18:12:35.000+0000",
"updated": "2013-01-29T18:12:35.000+0000"
},
{
"id": "237280",
"author": {
"name": "heenok",
"key": "heenok",
"displayName": "heenok",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Hi,\r\n\r\nI have exactly the same problem as Joel. I'm on Titanium SDK 3.0.0.GA, Alloy 1.0.1\r\n\r\nAnyone as a solution ?\r\n\r\nThanks",
"updateAuthor": {
"name": "heenok",
"key": "heenok",
"displayName": "heenok",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2013-02-05T21:32:48.000+0000",
"updated": "2013-02-05T21:32:48.000+0000"
},
{
"id": "237283",
"author": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Test case please as I have yet to reproduce this on my end. Once a test case has been posted I can revisit.",
"updateAuthor": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2013-02-05T21:44:11.000+0000",
"updated": "2013-02-05T21:44:11.000+0000"
},
{
"id": "237295",
"author": {
"name": "heenok",
"key": "heenok",
"displayName": "heenok",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Here my case :\r\n\r\nindex.js\r\n{code:js} \r\nfunction rowWasClicked(e) {\r\n alert('you pressed me');\r\n}\r\n$.index.open();\r\n{code} \r\n\r\nindex.xml\r\n{code:xml} \r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code} \r\n\r\ndetail.xml\r\n{code:xml} \r\n\r\n \r\n\t\r\n \r\n\r\n{code} \r\n\r\ndetail.js\r\n{code:js} \r\n$.copyright.addEventListener('click', function(e) {\r\n alert('Hello');\r\n});\r\n{code} \r\n\r\n\r\nBoth Events are never fired.\r\n\r\n///Update\r\n\r\nIt seems that UI inside don't react at all. A more basic case fails :\r\nindex.xml\r\n{code:js}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n\r\n{code} \r\nindex.js\r\n{code:js}\r\n$.price.addEventListener('click',function(e) {\r\n\talert('Click Event');\r\n});\r\n$.index.open();\r\n{code}\r\n\r\n\r\n",
"updateAuthor": {
"name": "heenok",
"key": "heenok",
"displayName": "heenok",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2013-02-05T22:37:55.000+0000",
"updated": "2013-02-10T11:51:04.000+0000"
},
{
"id": "237901",
"author": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Again, cannot reproduce. The label is generating the click event just fine for me. Are you sure there's not more code you aren't showing or something, because I just verified that everything works fine against your simpler test case.",
"updateAuthor": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2013-02-10T12:19:23.000+0000",
"updated": "2013-02-10T13:14:07.000+0000"
},
{
"id": "237902",
"author": {
"name": "heenok",
"key": "heenok",
"displayName": "heenok",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Thanks for your time Tony.\r\n\r\nThere's no more code. If it works for you then i will re-install Titanium, and launching a new Alloy project.\r\n\r\n",
"updateAuthor": {
"name": "heenok",
"key": "heenok",
"displayName": "heenok",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2013-02-10T13:19:29.000+0000",
"updated": "2013-02-10T13:19:29.000+0000"
}
],
"maxResults": 9,
"total": 9,
"startAt": 0
}
}
}