My Thanksgiving Flex Homework
So far my Flex apps have been very simple - a bunch of forms with remoting calls. Flex makes this very easy. I typically end up with just small problems of getting my layout just right, or making the format exactly right, but I honestly feel like I "get" Flex in terms of layout and controls.
In order to go a bit further in my skill set, I now want to figure out how to do the following:
- On loading the Flex app, pop up a login screen. I know how to do something on load (I did this with my lemonade stand game). I also know that the remoting calls will be simple. Would this be better using states? States is something else I need more experience with.
- Once logged in, I want my Flex app to work with my CFCs in an authenticated manner. Hopefully I can do this without using roles-based security in my CFCs, but I may start off with that approach to keep it easier.
I'll post as I work on this and share my findings. Hopefully I won't screw it up too badly, but I definitely welcome feedback on the code I end up using.
Comments
# Posted By Teddy R Payne
| 11/21/06 10:05 AM
# Posted By todd sharp
| 11/21/06 10:10 AM
# Posted By Raymond Camden
| 11/21/06 10:10 AM
# Posted By todd sharp
| 11/21/06 10:12 AM
# Posted By todd sharp
| 11/21/06 10:14 AM
# Posted By Raymond Camden
| 11/21/06 10:16 AM
For now - I want it to be nice and simple. But your question definitely needs to be addressed.
# Posted By Raymond Camden
| 11/21/06 10:18 AM
Have fun!
# Posted By Mike McConnell
| 11/21/06 10:56 AM
# Posted By Raymond Camden
| 11/21/06 11:09 AM
# Posted By Teddy R Payne
| 11/21/06 11:17 AM
My opinion on your question is formed by experience with the typical application user. We have several conventional 32 bit client-server applications in our enterprise environment. All require an initial login and some require additional levels of login based on the function you're trying to access. The latter scenario represents a true pain in the butt for the user. I think an application should be smart enough to take the initial login and apply it as necessary throughout an application. Users HATE (and that is not too strong a word to use in this context) to log-in to anything. Exceptions to the single login model might be where extremely sensitive financial or personnel data are being accessed. You might want, or need in the presence of government regulation, a secondary authentication scheme to serve as an electronic PIN or e-signature (since user name and password combos in the typical business environment are generally not that hard to guess).
M. McConnell
# Posted By Mike McConnell
| 11/21/06 11:40 AM
I agree that users dislike logging in. Also, I was not thinking of multiple post-authenticating event. Hell, that would seriously upset me as the developer to enforce it. I was more playing to activating a post authentication process after you hit a private method. Once you authenticate the private method, you would not have to log in again after that.
I was just curious if anyone has seen any success with a lazy login idea. Login when you need to and not up front.
It was just my curious mind spitting out the abnormal.
Cheers,
Teddy
# Posted By Teddy R Payne
| 11/21/06 12:31 PM
It works great and feels really natural in terms of user interface.
# Posted By Mike Rankin
| 11/21/06 1:24 PM
# Posted By Raymond Camden
| 11/21/06 1:39 PM
The concept seems similar to a ViewStack (which seems easier to implement) - can anyone clarify the diff?
# Posted By todd sharp
| 11/21/06 1:59 PM
Also, the wysiwyg portion of fb2 comes in real handy with view states. I'm sure there are lots of other differences that I can't think of at the moment.
# Posted By Mike Rankin
| 11/21/06 2:13 PM
# Posted By Nick Kwiatkowski
| 11/22/06 7:27 AM
DK
# Posted By Douglas Knudsen
| 11/26/06 12:38 PM
