Results 1 to 4 of 4

Thread: showing dialog at startup

  1. #1
    Join Date
    May 2006
    Location
    Indonesia
    Posts
    15

    Default showing dialog at startup

    Hello,

    I need to show modal login dialog right after the window initialized. My current solution is to extend DefaultApplicationLifecycleAdvisor and override one of the onXXX().
    The problem is that the authentication proccess handled by a singleton bean stored in the application context. and i cant find any way to access the application context from DefaultApplicationLifecycleAdvisor. how to do that?
    Or there is better way to show dialog at startup?

    regards,

    rudi

  2. #2
    Join Date
    May 2006
    Location
    Indonesia
    Posts
    15

    Default rtfm

    getApplicationServices().getApplicationContext()
    RTFM you lazy freak!!

  3. #3
    Join Date
    Jul 2005
    Location
    Beijing, China
    Posts
    35

    Question

    Quote Originally Posted by bungrudi
    getApplicationServices().getApplicationContext()
    what does it mean?
    sword in the hand but not mind

  4. #4
    Join Date
    Aug 2005
    Location
    Austin, TX
    Posts
    425

    Default

    Quote Originally Posted by hammer
    what does it mean?
    It's the incantation needed to get the application context reference from within the lifecycle listener.

    Larry.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •