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:
i get login panel with normal buttonCode:applicationContext.getObject("loginTest") as LoginTest
but i use redioButton
please help me
this is my code
application-context.xml
loginTest.mxmlCode:<?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"/>
this is my get panel codeCode:<?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>
Code:addChild(applicationContext.getObject("loginTest"));



Reply With Quote