Tom, it's not the question of how to implement the showing of Pin dialog. It's the question of how to get the custom exception from java LoginCommand all the way up to flex client. It seems that Flex somehow "swallows" all custom exceptions from java LoginCommand and throws it's own " Client.Authentication" with the default message for it and my own exception with it's important message describing the actual error is lost. The question is: Is there any way to throw SecurityException with a custom message OR error code OR error details from java LoginCommand so that it will be delivered all the way back to flex client.
...And when it comes to normal program flow, I do concider failed authentication as a place for an exception. It is true that this could be handled by calling another secure remote method after the login is done to check if user needs pin code and handle it from there. But it's a design decision to handle authentication completely with LoginCommand and since pin code is part of authentication in this scenario it would be correct to handle the pin authentication as a part of the authenticating LoginCommand. But if there is no way to do this, then I guess we will have to change the design since Flex does not "bend" for this. And this doesn't sound too good... any comments from Adobe guys...? -Mika On Nov 21, 2007 3:26 PM, Tom Chiverton <[EMAIL PROTECTED]> wrote: > On Wednesday 21 Nov 2007, Mika Kiljunen wrote: > > required to enter pin code also. If he is, then the login command > > would throw a custon exception > > Why are you throwing Exceptions for normal program flow ? > Wouldn't working with states (or even a ViewStack with selectedIndex bound to > Model.loginStep) be easier ? > > -- > Tom Chiverton > Helping to greatly implement interactive portals > on: http://thefalken.livejournal.com > > **************************************************** > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. > > For more information about Halliwells LLP visit www.halliwells.com. > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > >

