Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
Posts: 24
Registered: ‎01-08-2013
My Device: dev alpha
My Carrier: elisa
Accepted Solution

Issue with TextArea in ListView

When I use TextArea in a ListView, the program doesn't exit properly. Is it a simulator glitch? (waiting for my z10 dev edit for weeks now...)

listwithtextarea [BlackBerry C/C++ Application]	
	/Users/thierry/ndk-10.1.0-workspace/listwithtextarea/x86/o-g/listwithtextarea [78123138]	
		Thread [0] (Suspended : Container)	
	/Applications/bbndk/host_10_1_0_235/darwin/x86/usr/bin/ntox86-gdb	
	listwithtextarea on 172.16.157.136 pid 78123138 (6/6/13 11:08 AM)	
JavaScript Debugger [QML JavaScript Attach]	

// Default empty project template
import bb.cascades 1.0

// creates one page with a label
Page {
    Container {
	    ListView {
	        dataModel: ArrayDataModel {
	        	id: model            
	        }
	
	        listItemComponents: [
	            ListItemComponent {
	                Container {
	                    TextArea {
	                        text: ListItemData
	                    }
	                }
	            }
	        ] // end of listItemComponents list
	        onCreationCompleted: {
	            model.append([ 'blablalalalalalal\nblall', 'blablalalalalalal\nblall' , 'blablalalalalalal\nblall' ])
	        }
	    }
	}
}
Retired
Posts: 252
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10
My Carrier: Bell

Re: Issue with TextArea in ListView

[ Edited ]

Hi ThierryGrellier, there are no known issues with TextArea in a ListView.

 

Can you elaborate more on this statement "the program doesn't exist properly"? Can you provide the error messages you are seeing? 

 

P.S. I have tested your code on both, the simulator and on a Z10 and have noticed nothing out of the norm. 

@SamarAbdelsayed

Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Highlighted
Contributor
Posts: 24
Registered: ‎01-08-2013
My Device: dev alpha
My Carrier: elisa

Re: Issue with TextArea in ListView

No error message, but as you can see on the message above, the debugger stays suspended on a thread, and i have to kill the process. I'm developing on a macmini latest gen with i7 and the latest vmware version. Also using a bt keyboard. I noticed that when not using the debugger but only running the app on the simulator, it terminates, but also that a listview isnt necessary to block, having a textarea is enough to get stuck. Still thanks for confirming there is no issue on a device. Having one would help already because my app isnusing the camera, and this is not available in the simulator...