[flexcoders] How to create a fault in FDS?

2007-01-31 Thread benjidudu
I have a fill which is called with a parameter. The user login is passed and I check the login in the DAO. What I would like is to create a fault event to return to Flex if the login does not pass my checks. Is there a way to do this? Benjamin.

Re: [flexcoders] How to create a fault in FDS?

2007-01-31 Thread Tom Chiverton
On Wednesday 31 Jan 2007, benjidudu wrote: Is there a way to do this? You can throw an error in whatever server side code you have. I wouldn't use FDS for this though, better to just plain remote or call a web service. -- Tom Chiverton Helping to collaboratively fashion front-end users

RE: [flexcoders] How to create a fault in FDS?

2007-01-31 Thread Jeff Vroom
You can just throw a RuntimeException from your fill method (or whatever server side method that FDS is calling). That turns into a fault event on the client. If you are using FDS's LoginCommand interface, you can just have your login method return a Principal that does not support the roles