Announcement Announcement Module
Collapse
No announcement yet.
Problem with radio button in spring Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with radio button in spring

    hi,
    i have a panel and 2 radio buttons and one radio gorup
    and panel defined in application-context.xml
    and when i get panel with this code:
    Code:
    applicationContext.getObject("loginTest") as LoginTest
    i get login panel with normal button
    but i use redioButton

    please help me

    this is my code

    application-context.xml
    Code:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <objects xmlns="http://www.springactionscript.org/schema/objects" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://www.springactionscript.org/schema/objects
    	http://www.springactionscript.org/schema/objects/spring-actionscript-objects-1.0.xsd">
    
    	<import file="services-context.xml"/>
    
    	<!-- logging section-->
    	<object id="traceTarget" class="org.springextensions.actionscript.ioc.factory.config.LoggingTargetFactoryObject">
    		<property name="loggingTargetClass" value="mx.logging.targets.TraceTarget"/>
    		<property name="includeCategory" value="true"/>
    		<property name="includeDate" value="true"/>
    		<property name="includeLevel" value="true"/>
    		<property name="includeTime" value="true"/>
    		<property name="level" value="2"/>
    		<!-- <property name="filters"> <array> <value>com.domain.model.*</value> <value>com.domain.view.*</value>
    			</array>
    			</property>-->
    	</object>
    
    	<!-- importing properties file -->
    	<property file="config.properties" />
    	<!-- using imported properties-->
    
    
    	<!--instantiating our Model class-->
    	<object id="appModelInstance" class="com.adstrim.client.blog.model.ApplicationModel"
    		singleton="true"/>
    	
    		<object id="loginTest" class="com.adstrim.client.blog.view.LoginTest"
    		singleton="true"/>
    loginTest.mxml
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="80" height="50">
    	<mx:RadioButtonGroup id="LoginType"/>
    	<mx:RadioButton label="Test1" selected="true" groupName="LoginType" id="radiobutton2"/>
    	<mx:RadioButton label="Test2" groupName="LoginType" id="radiobutton1"/>
    </mx:VBox>
    this is my get panel code
    Code:
    addChild(applicationContext.getObject("loginTest"));

  • #2
    anybody?

    Comment

    Working...
    X