flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FLEX-24451) spark radiobuttongroup does not support setting the selectedValue to null
Date Mon, 13 May 2013 03:19:15 GMT

     [ https://issues.apache.org/jira/browse/FLEX-24451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Justin Mclean resolved FLEX-24451.
----------------------------------

    Resolution: Cannot Reproduce

Fixed in previous version of the SDK.
                
> spark radiobuttongroup does not support setting the selectedValue to null
> -------------------------------------------------------------------------
>
>                 Key: FLEX-24451
>                 URL: https://issues.apache.org/jira/browse/FLEX-24451
>             Project: Apache Flex
>          Issue Type: Improvement
>          Components: Spark: RadioButton
>    Affects Versions: Adobe Flex SDK 4.1 (Release)
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Language Found: English
>            Reporter: Adobe JIRA
>
>       Example below: select a radio button, click the Clear button, echo the selected
radio button - still the value of the selected radio button.
> <?xml version="1.0" encoding="utf-8"?>
> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
> 			   xmlns:s="library://ns.adobe.com/flex/spark" 
> 			   xmlns:mx="library://ns.adobe.com/flex/mx" 
> 			   minWidth="955" minHeight="600">
> 	<fx:Script>
> 		<![CDATA[
> 			import mx.controls.Alert;
> 		]]
>       >
> 	</fx:Script>
> 	
> 	<fx:Declarations>
> 		<s:RadioButtonGroup id="myGroup" />
> 	</fx:Declarations>
> 	<s:layout>
> 		<s:VerticalLayout />
> 	</s:layout>
> 	
> 	<s:RadioButton value="value1" label="Value 1" group="{myGroup}" />
> 	<s:RadioButton value="value2" label="Value 2" group="{myGroup}" />
> 	<s:Button label="clear radio" click="myGroup.selectedValue = null;" />
> 	<s:Button label="echo selected radio" click="Alert.show(myGroup.selectedValue as
String);" />
> </s:Application>
> Clearing the selectedValue should both clear the selected value and uncheck all radio
buttons.
> Workaround is tough but possible because vars are private in radiobuttongroup (_selection).
> This is a regression because mx radiobuttongroup allowed this.
>     

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message