You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2013/01/31 14:41:15 UTC

[jira] [Resolved] (WICKET-5013) Wicket Enclosure fails with more than one component

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

Martin Grigorov resolved WICKET-5013.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 6.6.0
                   1.5.10

The objects will be cloned before detaching them and measuring their size from now on, so the original component wont be detached.
                
> Wicket Enclosure fails with more than one component
> ---------------------------------------------------
>
>                 Key: WICKET-5013
>                 URL: https://issues.apache.org/jira/browse/WICKET-5013
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.3.0
>         Environment: Sun JDK 1.7.0_11
> Ubuntu 12.10
>            Reporter: Magne Rasmussen
>            Assignee: Martin Grigorov
>             Fix For: 1.5.10, 6.6.0
>
>         Attachments: WICKET-5013.zip
>
>
> An enclosure like:
> <wicket:enclosure child="message">
>   <span wicket:id="message" />
>   <a href="#" wicket:id="link"></a>
> </wicket:enclosure>
> fails with:
> org.apache.wicket.WicketRuntimeException: The component(s) below failed to render. Possible reasons could be that: 1) you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered), 2) if your components were added in a parent container then make sure the markup for the child container includes them in <wicket:extend>.
> 1. [ExternalLink [Component id = link]]
> It will report failed rendering for all components within the enclosure except the child.
> This works if I turn the enclosure into an inline enclosure:
> <div wicket:enclosure="message">
>   <span wicket:id="message" />
>   <a href="#" wicket:id="link"></a>
> </div>
> I got this error when upgrading from Wicket 6.2.0 to 6.3.0.
> I also noticed that the AjaxEnclosureListener only visits the InlineEnclosures.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira