Hi,

I added the panel in the onInitialize method to keep the way you did and
because I don't know the rest of the code. But, for the specific part of
code we exchanged, the panel could be added in the constructor (or best, in
an init() method called by the constructor to be clean). There is also no
problem to have the LDM as a nested class; for the quick start, the LDM was
in the MyPanel.java (not nested then, but there is no huge difference
strictly java speaking).

Regards,
Sebastien.

On Thu, May 31, 2012 at 1:41 AM, gmparker2000 <greg.par...@brovada.com>wrote:

> Thank you so much Sebastien and Sven!  Sebastien I altered my actual code
> to
> put the panel on the LDM and it didn't work on the initial try.  The
> problem
> with the illegal state exception I was having seems to happen if you
> construct your components in the panel constructor instead of the
> onInitialize method.  Once I made sure everything was using the
> onInitialize
> method the panel.getPage() method started working presumably because the
> onInitialize of the panel triggers the LDM load after the panel is
> officially added to the page.
>
> Next I'm going to try to phase out the panel member variable on the LDM by
> using MyPanel.this.getPage() instead.  This should work and then I can be
> sure that I'm not serializing the panel with the LDM.
>

Reply via email to