Skip to main content
Participant
August 23, 2010
Question

Need your help in implementing my Cairngorm Application Successfuly

  • August 23, 2010
  • 1 reply
  • 389 views

Hi ,

I am trying to do a  a simple Login Example using Cairngorm 2.2 version with Flex and J2EE combinations , on which a successFil login should display Welcome , and not a Valid login Details  should display "Invalid Login"

Currently for the time being i am harding these Login details to Admin , and Admin respectively .

I am familar with the basics of Cairngorm therotical part , but not with Pratical part.

Inside Flex :

var user:User = new User();

public function login():void
{

user.uname = UITI.text;

user.pwd= PWDTI.text;

// Setting this values in a User Value Object and dispatching it thorough a Custom Event called as LoginEvent .

systemmanager.dispatchEvent(LoginEvent_Login,User);

}

This is my   User Value Object

public class User

{

public var uname:String ;

public var pwd:String ;

}

As per the Cairngorm docs it says that the Event should be passed through the FrontController

Please help me now , do i need to get the instance of the FrontControler inside my login function ??

Waiting for your replies .

Thanks in advance .

This topic has been closed for replies.

1 reply

kiran7881Author
Participant
August 23, 2010

Any help sir ??