Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19247] iOS: handleLinks for TextArea doesn't work in ListItem templates

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2017-05-08T05:03:45.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.2.0
Componentsn/a
Labelslistviewitem, textarea
ReporterJérôme Danthinne
AssigneeVijay Singh
Created2015-06-22T08:10:13.000+0000
Updated2017-05-26T13:16:27.000+0000

Description

I'm in the process of converting a TableView to a ListView. Everything is ok excluding a textarea… In the TableView, this TextArea was in the custom TableViewRow view and had the handleLinks argument set to false. But when I do that in the ListItem template, I got the following error. If I remove this argument, everything is fine, but I need it.
[ERROR] :  Reason:
[ERROR] :  Invalid type passed to function
[ERROR] :  Stack trace:
[ERROR] :  
[ERROR] :  0   CoreFoundation                      0x0502972a __exceptionPreprocess + 154
[ERROR] :  1   libobjc.A.dylib                     0x04bfca97 objc_exception_throw + 44
[ERROR] :  2   Showstar                            0x00192818 TiExceptionThrowWithNameAndReason + 232
[ERROR] :  3   Showstar                            0x000f155f -[TiUIView throwException:subreason:location:] + 143
[ERROR] :  4   Showstar                            0x00101964 -[TiUITextArea setHandleLinks_:] + 580
[ERROR] :  5   libobjc.A.dylib                     0x04c12771 -[NSObject performSelector:withObject:] + 70
[ERROR] :  6   Showstar                            0x0015a651 DoProxyDelegateReadKeyFromProxy + 321
[ERROR] :  7   Showstar                            0x0015acb7 DoProxyDelegateReadValuesWithKeysFromProxy + 1239
[ERROR] :  8   Showstar                            0x000f67c1 -[TiUIView readProxyValuesWithKeys:] + 65
[ERROR] :  9   Showstar                            0x000cd187 -[TiViewProxy firePropertyChanges] + 167
[ERROR] :  10  Showstar                            0x000cad12 -[TiViewProxy view] + 706
[ERROR] :  11  Showstar                            0x000caeb2 -[TiViewProxy view] + 1122
[ERROR] :  12  Showstar                            0x000c2fdc -[TiViewProxy add:] + 1388
[ERROR] :  13  Showstar                            0x000d64b1 __37-[TiViewProxy unarchiveFromTemplate:]_block_invoke783 + 273
[ERROR] :  14  CoreFoundation                      0x04f4dcc3 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 99
[ERROR] :  15  CoreFoundation                      0x04f4d38f -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 287
[ERROR] :  16  CoreFoundation                      0x04f4d1e5 -[NSArray enumerateObjectsUsingBlock:] + 53
[ERROR] :  17  Showstar                            0x000d5faf -[TiViewProxy unarchiveFromTemplate:] + 479
[ERROR] :  18  Showstar                            0x000d682f +[TiViewProxy unarchiveFromTemplate:inContext:] + 367
[ERROR] :  19  Showstar                            0x000d6410 __37-[TiViewProxy unarchiveFromTemplate:]_block_invoke783 + 112
[ERROR] :  20  CoreFoundation                      0x04f4dcc3 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 99
[ERROR] :  21  CoreFoundation                      0x04f4d38f -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 287
[ERROR] :  22  CoreFoundation                      0x04f4d1e5 -[NSArray enumerateObjectsUsingBlock:] + 53
[ERROR] :  23  Showstar                            0x000d5faf -[TiViewProxy unarchiveFromTemplate:] + 479
[ERROR] :  24  Showstar                            0x002fd1be -[TiUIListItemProxy unarchiveFromTemplate:] + 78
[ERROR] :  25  Showstar                            0x00304b64 -[TiUIListView setDictTemplates_:] + 1156
[ERROR] :  26  Showstar                            0x00311f73 __34-[TiUIListViewProxy setTemplates:]_block_invoke139 + 83
[ERROR] :  27  Showstar                            0x001935ac __TiThreadPerformOnMainThread_block_invoke + 60
[ERROR] :  28  Showstar                            0x00193a20 TiThreadProcessPendingMainThreadBlocks + 528
[ERROR] :  29  Showstar                            0x001937f9 __TiThreadPerformOnMainThread_block_invoke208 + 57
[ERROR] :  30  libdispatch.dylib                   0x057c8d8a _dispatch_call_block_and_release + 15
[ERROR] :  31  libdispatch.dylib                   0x057e5ecf _dispatch_client_callout + 14
[ERROR] :  32  libdispatch.dylib                   0x057ceee3 _dispatch_main_queue_callback_4CF + 677
[ERROR] :  33  CoreFoundation                      0x04f828ee __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 14
[ERROR] :  34  CoreFoundation                      0x04f405f0 __CFRunLoopRun + 2256
[ERROR] :  35  CoreFoundation                      0x04f3fa5b CFRunLoopRunSpecific + 443
[ERROR] :  36  CoreFoundation                      0x04f3f88b CFRunLoopRunInMode + 123
[ERROR] :  37  GraphicsServices                    0x055282c9 GSEventRunModal + 192
[ERROR] :  38  GraphicsServices                    0x05528106 GSEventRun + 104
[ERROR] :  39  UIKit                               0x01b27106 UIApplicationMain + 1526
[ERROR] :  40  Showstar                            0x00084b58 main + 408
[ERROR] :  41  libdyld.dylib                       0x0580bac9 start + 1

Comments

  1. Radamantis Torres-Lechuga 2015-06-26

    [~jdanthinne] can you please attach a test case and steps to reproduce?
  2. Jérôme Danthinne 2015-06-27

    Just launch this, and it crashes just on app launch.
       <Alloy>
       	<Window id="win">
       		<ListView defaultItemTemplate="testTemplate">
       			<Templates>
       				<ItemTemplate name="testTemplate">
       					<TextArea bindId="testText" handleLinks="false"></TextArea>
       				</ItemTemplate>
       			</Templates>
       			<ListSection>
       				<ListItem testText:value="The link is http://www.google.com." />
       			</ListSection>
       		</ListView>
           </Window>
       </Alloy>
       
       $.win.open();
       
  3. Radamantis Torres-Lechuga 2015-07-02

    [~jdanthinne], so far we can not replicate the issue, can you please attach a functional test case and more information about your environment? Are you testing this on the simulator? real device? which OS version? Model?
  4. Jérôme Danthinne 2015-07-02

    What do you mean by a functional test case? The attached code is the one I'm using to test the issue… My current environment: Xcode 6.4 / iOS SDK 8.4, tested on Simulator 8.4 Appcelerator Studio 4.1.0.201507010234 / SDK 4.1.0v20150626223333
  5. Jérôme Danthinne 2015-07-09

    Still happening with SDK 4.1.0.GA
  6. Jérôme Danthinne 2015-09-05

    Not crashing anymore with SDK 5.0.0.Beta, but any function added in the onLink attribute is never called…
  7. Vijay Singh 2017-05-08

    As mentioned in last comment "link" event is not fired. It is fixed in TIMOB-23887 . Marking it as duplicate.
  8. Lee Morris 2017-05-26

    Closing ticket as duplicate with reference to the above comments.

JSON Source