You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2009/02/01 18:19:59 UTC

[jira] Resolved: (WICKET-2066) Palette initFactories called more than once if invisible

     [ https://issues.apache.org/jira/browse/WICKET-2066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-2066.
-----------------------------------

    Resolution: Duplicate
      Assignee: Igor Vaynberg

already fixed in trunk of 1.3.x and 1.4

> 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
>            Assignee: Igor Vaynberg
>
> 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.