Yes, as I said, with the click of the link button, other form load(from
loginForm to registerForm). But, the fields on the form are not displaying
in a right manner. Only the textfields are being displayed, and labels in
front of those textfields disappered.

Thanks.
Manu.

mydarkspoon wrote:
> 
> I can't notice anything wrong with the code...
> Did you check the workflowState actually changes ?
> 
> --- In flexcoders@yahoogroups.com, Manu Dhanda <[EMAIL PROTECTED]> wrote:
>>
>> 
>> Code for ValidatePanel.mxml :
>> <?xml version="1.0" encoding="utf-8"?>
>> <mx:Panel 
>>      xmlns:mx="http://www.adobe.com/2006/mxml";
>>      xmlns:loginview="com.mot.stir.view.loginview.*"
>>      title="Login" 
>>      horizontalAlign="center" 
>>      verticalAlign="middle"> 
>> 
>>     <mx:Script>
>>     <![CDATA[  
>>              import mx.core.Container;
>>              import com.adobe.cairngorm.control.CairngormEventDispatcher;
>>              import com.mot.stir.model.StirModelLocator;    
>>              import com.mot.stir.event.ClickLoginEvent;   
>>              import com.mot.stir.vo.LoginVO;
>>              import com.mot.stir.vo.RegisterVO;
>>          
>>              [Bindable] public var model : StirModelLocator =
>> StirModelLocator.getInstance();
>> 
>>              public function getView( workflowState : Number ) : Container
>>              {
>>                      if( model.workflowState == 
>> StirModelLocator.VIEWING_REGISTER_SCREEN )
>>                      {
>>                              this.title = "Register";
>>                              return registerForm;
>>                      }
>>                      else
>>                      {
>>                              this.title = "Login";
>>                              return loginForm;       
>>                      }
>>              }
>>     ]]>
>>     </mx:Script>
>> 
>>    <mx:ViewStack id="validateView" selectedChild="{ getView(
>> model.workflowState ) }">
>>         <loginview:LoginForm id="loginForm"/>
>>         <loginview:RegisterForm id="registerForm"/>
>>     </mx:ViewStack>
>>     <loginview:LoginAndRegisterControlBar id="lnrControlBar"/>
>> </mx:Panel>
>> 
>> Thanks.
>> Manu.
>> 
>> 
>> mydarkspoon wrote:
>> > 
>> > Can you post the shole code for the component that hosts the view
> stack ?
>> > 
>> > If you tested the model workflowState and it did changed I guess that
>> > the problem is with your model reference variable is not set to be
>> > bindable with the [Bindable] metadata tag (although the ModelLocater
>> > instance is set to be bindable, any reference to it must be bindable
>> > as well).
>> > If it's not the 2nd place I would check would be the getView()...
>> > 
>> > Anyway, it would be much helpful to see your code.
>> > 
>> > --- In flexcoders@yahoogroups.com, Manu Dhanda <manuraj.dhanda@>
> wrote:
>> >>
>> >> 
>> >> Hii..
>> >> 
>> >> I am trying to learn how to use cairngorm. Now, I am creating
>> > Login/Register
>> >> page. 
>> >> The structure is like below:
>> >> <mx:Panel>
>> >>    <mx:ViewStack id="validateView" selectedChild="{ getView(
>> >> model.workflowState ) }">
>> >>         <loginview:LoginForm id="loginForm"/>
>> >>         <loginview:RegisterForm id="registerForm"/>
>> >>     </mx:ViewStack>
>> >>     <loginview:LoginAndRegisterControlBar id="lnrControlBar"/>
>> >> </mx:Panel>
>> >> 
>> >> In the code, loginForm & registerForm are two forms. and below
> them is a
>> >> controlbar( which controls which form need to be displayed via a link
>> >> button.
>> >> 
>> >> The issue is, initially, login form displayed fine. But, when I
>> > click the
>> >> link button to display the registerForm, it only displays the
>> > 'textfields'
>> >> and none of the labels being displayed.
>> >> 
>> >> First I thought, there might be an issue with registerForm code, but
>> > then I
>> >> set the registerForm to be displayed as the application default & it
>> >> displays fine and then same problem happen with login form(i.e. only
>> > text
>> >> fields displyed with none labels in front of them.
>> >> 
>> >> Any help to resolve this issue will be great.
>> >> 
>> >> Thanks.
>> >> -- 
>> >> View this message in context:
>> > http://www.nabble.com/Cairngorm-Issue-tf4960151.html#a14206482
>> >> Sent from the FlexCoders mailing list archive at Nabble.com.
>> >>
>> > 
>> > 
>> > 
>> > 
>> 
>> -- 
>> View this message in context:
> http://www.nabble.com/Cairngorm-Issue-tf4960151.html#a14209723
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Cairngorm-Issue-tf4960151.html#a14217248
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to