Palette initFactories called more than once if invisible
--------------------------------------------------------

                 Key: WICKET-2066
                 URL: https://issues.apache.org/jira/browse/WICKET-2066
             Project: Wicket
          Issue Type: Bug
          Components: wicket-extensions
    Affects Versions: 1.3.5
            Reporter: Michael Mosmann


Using org.apache.wicket.extensions.markup.html.form.palette.Palette.
Palette is invisible. First time page will render well, but the next action 
will throw an exception.

I think following code is wrong:
---------------------------------------
        protected void onBeforeRender()
        {
                if (!hasBeenRendered())
                {
                        initFactories();
                }
                super.onBeforeRender();
        }
---------------------------------------

I did some quick-hacks to set "hasBeenRendered" to true after first request, 
which worked well.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to