[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Startup Screen  XML
Forum Index -> Development
Author Message
dstrigel

Power User

Joined: 09/12/2010 09:23:42
Messages: 69
Offline

At the CC meeting, you recommended that we implement a startup screen. So that the user already sees something before the application starts. Can you show us a sample implementation here?
Thank you and best regards
Daniel
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

Hi Daniel,

the screen is implemented in the following way:

XML Layout:

Code:
 <t:beanprocessing id="g_1" beanbinding="#{d.WorkplaceOutestRiscUI}" >
     <t:callserverontrigger id="g_7" actionListener="#{d.WorkplaceOutestRiscUI.onFirstShown}" duration="2000" trigger="#{d.WorkplaceOutestRiscUI.firstShownTrigger}" />
 </t:beanprocessing>
 <t:rowpagebeaninclude .../>
 


So the CALLSERVERONTRIGGER component gets triggered directly at startup, then waits 200ms, then calls the function "onFirstShown".

The ROWPAGEBEANINCLUDE is first showing a "welcome-page" (some text "...starting..." and then, after onFirstShown is called comes up with the real application screen.

In your case you can also call "onFirstShown" immediately (duration="1"), then the first screen is show, directly calls the application to start up - so that the startup is happening behing the welcome-screen.

Kind regards! Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team