Announcement Announcement Module
Collapse
No announcement yet.
showing dialog at startup Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    rtfm

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

    Comment


    • #3
      Originally posted by bungrudi
      getApplicationServices().getApplicationContext()
      what does it mean?

      Comment


      • #4
        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.

        Comment

        Working...
        X