Newbie question: Login Transition [message #1794450] |
Thu, 30 August 2018 14:02  |
Eclipse User |
|
|
|
I have read heaps of the documentation and forum posts and looked at many examples without being able to find the solution. Probably because this is really simple once you know how to do it
When my RAP application starts I show a simple form with Username and Password fields and a Login button.
When that button is clicked I want the login fields to disappear and my main application screen to appear.
How is that done?
thanks,
Terry
|
|
|
|
Re: Newbie question: Login Transition [message #1794471 is a reply to message #1794463] |
Fri, 31 August 2018 02:09   |
Eclipse User |
|
|
|
If you are using e4, you can manage the login screen by connecting an application lifecycle hook, see the tutorial here: http://www.vogella.com/tutorials/Eclipse4LifeCycle/article.html
Instead of using the plugin.xml, you can declare your lifecycle hook class when adding your entry point like:
Map<String, String> properties = new HashMap<String, String>();
properties.put(WebClient.PAGE_TITLE, "[your app title]");
properties.put(WebClient.THEME_ID, RWT.DEFAULT_THEME_ID);
application.addEntryPoint("/", new E4EntryPointFactory(E4ApplicationConfig.create("platform:/plugin/[your project name]/Application.e4xmi",
"bundleclass://[your project name]/[your lifecycle hook class name]")), properties);
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07151 seconds