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 2011/09/16 07:02:08 UTC

[jira] [Resolved] (WICKET-4056) Invisible Form creates empty Page

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

Igor Vaynberg resolved WICKET-4056.
-----------------------------------

    Resolution: Invalid
      Assignee: Igor Vaynberg

in this code
{code}
MarkupContainer form = add(new Form("loginForm"){...}); form.setVisible(false);
{code}
the variable form is assigned the page instance, not the form. because component's add method is chained, it returns the component that add is called on, not the added components.

since form=page and you call page.setvisible(false) you get an empty document.

> Invisible Form creates empty Page
> ---------------------------------
>
>                 Key: WICKET-4056
>                 URL: https://issues.apache.org/jira/browse/WICKET-4056
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.0
>         Environment: Wicket version: 1.5 snapshot
> java version "1.6.0_25"
> Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
> Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode, sharing)
> Server: GlassFish 3.1.1
>            Reporter: bernard
>            Assignee: Igor Vaynberg
>         Attachments: FormVisible.zip
>
>
> I found this with a recent snapshot - please see attached quickstart.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira