macromedia.coldfusion.flash_integration
[Top] [All Lists]

Re: CF and Flex Unexpected data type change

Subject: Re: CF and Flex Unexpected data type change
From: "MarsupialsDo" <webforumsuser@xxxxxxxxxxxxxx>
Date: Thu, 15 May 2008 16:00:37 +0000 (UTC)
Newsgroups: macromedia.coldfusion.flash_integration

Still don't know why it is doing what it's doing, but I have a workaround for 
anyone experiencing the same kind of thing.
 I have changed the selected property of my check boxes to perform an explicit 
coercion of the type to Boolean as follows.

 Before:
 selected="{lstPermitType.selectedItem.AUTO_ISSUE_TEMP}"

 After:
 selected="{Boolean(int(lstPermitType.selectedItem.AUTO_ISSUE_TEMP))}"

 This allows the check boxes to properly display the expected value based on 
the item selected in the list rather than always displaying a check (even when 
the value is "0").


<Prev in Thread] Current Thread [Next in Thread>