Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2421] ListView - crashes when using bindId="description"

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2013-11-20T18:19:52.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Titanium SDK & CLI
LabelsListViews, template
ReporterMads Moller
AssigneeShak Hossain
Created2013-11-14T11:22:36.000+0000
Updated2016-03-08T07:41:27.000+0000

Description

ListView - crashes when using bindId="description" When I use the bindId "description" the app crashes. I guess you either map it to the objc description class method or similar restricted predefined key. Example:
<Alloy>
	<Window id="win">
		<ListView id="listView" defaultItemTemplate="myCustomTemplat">
			<Templates>
				<ItemTemplate name="myCustomTemplate">
					<Label id="title" bindId="title" />
					<Label id="description" bindId="description" />
				</ItemTemplate>
			</Templates>
			
			<ListSection>
				<ListItem title:text="Hello appx" description:text="this is some text"/>
				<ListItem title:text="This is a bug" description:text="this is some text 2"/>
			</ListSection>
		</ListView>
	</Window>
</Alloy>

This crashes.

Comments

  1. Pedro Enrique 2013-11-20

    Resolving as invalid, "description" is an internal reserved word.
  2. Mads Moller 2013-11-21

    Hi Pedro, Thats also super nice. But please document it then. I used several hours looking through my app, before figuring this out.
  3. Pedro Enrique 2013-11-21

  4. Fokke Zandbergen 2015-02-19

    [~penrique] can't we include a constant with these reserved keywords in the SDK and simply check against them in cases like these so we can inform the user instead of just crashing?

JSON Source