I take it that regular users for your application dont have to authenticate, but you want the admin to login and then show him or her a different view (a view with an admin tab)?
The question is kind of broad, i mean allowing a user to login is pretty much nuts and bolts stuff. You put together a widget with text and password fields, give them a button to click (or respond to the enter key) and then make an RPC call to the server where you'd authenticate them (using a db, text file or hard coded value or whatever you want). Once the RPC call returns successfully you can rebuild the tabs or just add the admin tab. Should be pretty straight forward. Do you have a more specific problem? Trevis On Jul 29, 12:00 pm, Nickelnext <[email protected]> wrote: > Hello everyone, > > I'm trying to figure out how to create a small Admin Area protected by > a password (that could be hardcoded or stored in a xml file, it > doesn't matter) inside my application. > > My application is basically a TabbedPanel that contains 4 or 5 panels, > some of them communicates with plain Java servlets and so on. > > Now, what i need to do is a simple form that can authenticate the > admin and let him upload some files and do some other things. What i > wanted to do is to create another GWT class with some widgets inside, > but i don't know what is the best (or simply the easiest) way to do > that. > > I read about using Basic or Form Tomcat Authentication, but in my case > is not possible (is it?) due to the fact that if I add the Admin Area > like a new Tab inside the TabbedPanel, with tomcat auth, every user > that would like to use my app should authenticate himself (what i > learned is that with tomcat auth you choose an entire page to > protect). > > Yet, if i make another Module or try to set another Entry point > (didn't understand well how), using the Admin Area like another > application, would be more complex, and i'd prefer to create a unique > application. > > I was wondering if i could use plain Java servlets, GWT servlets > (async ones), because i know that with php it would be easy to make > but i don't know how to mix php with gwt so i'd prefere to use another > method. > > I hope i explained myself well, if you need any further explanation i > will give you as soon as possible. > Regards > Nickelnext --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
