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;
// Setting this values in a User Value Object and dispatching it thorough a Custom Event called as LoginEvent .
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 .
Your Front controller should be a separate class extending the Cairngorm's Front controller. Inside that class , should have the listener for the event you dispatched. The listener is nothing but your Caringrom Command. This command should ovveride the necessary methods like execute(), result() and fault() to deal with your backend connectivity with cairngorm delegate etc...
Please note that your FronController should be initialized in your main application file. like...
Thank you very much , i deadly needed this .I am familiar with theroitical part of cairngorm .
Keeping this forum in Hope , i will start with my first cairngorm Example today .