Hi Thomas, http://ulc-community.canoo.com/snipsnap/space/Contributions/Application+Tem plate
The Application Template community contribution demonstrates, among many other features of ULC, how to code a Login Dialog. Please see classes: LoginView, LoginController, LoginController.OkHandler. LoginView demonstrates a modal dialog. On running the TemplateDevelopmentRunner class, choose menu: File > Login to bring up the login dialog. The community code for Application Template has not been updated for ULC 6.1. (Community code is not part of the ULC release and is not guaranteed to be compatible with the latest release. The contributor or someone will update it soon). To make it compile with ULC 6.1, please get rid of ULCBorderPane container whereever it is referred and instead use its contents directly just to get going. You can write your authentication and authorisation code in the OkHandler on the server. The user profile would be stored on the server. The client need not store any user profile as all processing is done on the server. ULC applications are totally server centric applications - presentation and business logic are executed on the server. The ULC client side presentation engine is just a renderer (using Swing) of the presentation logic coded using ULC widgets. Please note that in ULC, no application code resides on the client. I hope this helps. We will be happy to answer any further questions. Thanks and regards, Janak -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Thomas Fuller Sent: Friday, May 19, 2006 4:04 PM To: [email protected] Subject: [ULC-developer] Login example Hi, We have just started evaluating the Canoo ULC framework and I've been looking around the examples and documentation as well as the mailing list and do not see an example where the client Swing application has a login dialog which then calls the server for authentication and authorization. There is mention of a snip-snap demo, and I took a look but don't see what the author was referring to. Can anyone help us? This is a critical piece of functionality for our application, since the client must be able to authenticate with the server. Also, has anyone used ULC to login and then obtain a profile of the user (for example a typical user vs. someone with admin permissions)? On the server side JAAS would be used to login the user, but the client would still need to learn what permissions they have. I might have the wrong view of how this all fits together, so if I'm incorrect, please feel free to let me know what I'm missing. Thanks, Thomas Fuller _____________________________________________________________________ This message has been checked for all known viruses for Frontline Ltd by the MessageLabs Virus Scanning Service. _____________________________________________________________________ This e-mail message and any attachment(s) are CONFIDENTIAL and may contain legally privileged information. If you are not the intended recipient you should not read, copy, distribute, disclose or otherwise use the information in this e-mail or any attachment(s). Please also e-mail, telephone or fax us immediately and delete the message and any attachment(s) from your system. E-mail may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. Please note that any views expressed in this email may be those of the originator and do not necessarily reflect those of this organisation. _____________________________________________________________________ Frontline on the Web : http://www.frontline.ltd.uk _____________________________________________________________________ _______________________________________________ ULC-developer mailing list [email protected] http://lists.canoo.com/mailman/listinfo/ulc-developer
