You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Juergen Donnerstag (JIRA)" <ji...@apache.org> on 2008/08/24 15:45:44 UTC

[jira] Resolved: (WICKET-1583) NPE in EnclosureResolver

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

Juergen Donnerstag resolved WICKET-1583.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4-M4

fixed

> NPE in EnclosureResolver
> ------------------------
>
>                 Key: WICKET-1583
>                 URL: https://issues.apache.org/jira/browse/WICKET-1583
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.3
>            Reporter: Jonathan Locke
>            Assignee: Juergen Donnerstag
>             Fix For: 1.4-M4
>
>
> if you put a single wicket:container in a wicket:enclosure, it will NPE looking for a "child" attribute.  you can work around by either changing the container to a div (in which case it will correctly default to the single child) or by adding a child="name" attribute to the enclosure to explicitly specify the single child.
> Caused by: java.lang.NullPointerException
> 	at org.apache.wicket.markup.resolver.EnclosureResolver.resolve(EnclosureResolver.java:59)
> 	at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1324)
> 	at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1476)
> 	at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:639)
> 	at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:112)
> 	at org.apache.wicket.Component.renderComponent(Component.java:2478)
> 	... 47 common frames omitted

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