Re: How to create a fault in FDS?
- Tom and Jeff, thank you very much. It works without a glitch.
Is this documented somewhere? I looked for it for a while without
This brings me to the FDS documentation. I think the Flex
documentation is very well done and detailed. But the FDS
documentation is quite the opposite. It seems to me there is only the
minimum we need to know and everything is scattered in the Flex
I would personally prefer a separate doc with detailed explanations on
the Java side.
--- In email@example.com, "Jeff Vroom" <jvroom@...> wrote:
> 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 defined by the security constraints you attach to your
> destination's configuration. This is a declarative approach when you
> simply need to ensure a user has a given role when performing an
> From: firstname.lastname@example.org [mailto:email@example.com] On
> Behalf Of benjidudu
> Sent: Wednesday, January 31, 2007 3:23 AM
> To: firstname.lastname@example.org
> Subject: [flexcoders] How to create a fault in FDS?
> 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
> Is there a way to do this?
Agreed. I’m struggling to find real-world examples of using FDS + JAVA. There’s plenty of 1 datagrid – 1 form examples, but nothing more meaningful.