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 2007/10/29 07:14:50 UTC

[jira] Commented: (WICKET-1091) wicket:enclosure doesn't work with multiple child components that are Wicket Panels

    [ https://issues.apache.org/jira/browse/WICKET-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538410 ] 

Igor Vaynberg commented on WICKET-1091:
---------------------------------------

can we have a quickstart please...

> wicket:enclosure doesn't work with multiple child components that are Wicket Panels
> -----------------------------------------------------------------------------------
>
>                 Key: WICKET-1091
>                 URL: https://issues.apache.org/jira/browse/WICKET-1091
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta4
>         Environment: Wicket 1.3.0-beta4, JBoss 4.0.5-GA, Firefox 2.0.0.8
>            Reporter: Gilad Garon
>
> Using the <wicket:enclosure> with panels as child components doesn't work.
> <HTML>
> <wicket:enclosure child="startTime">
>     <tr>
>             <td>
>                 <wicket:message key="form.startTime"></wicket:message>
>             </td>
>             <td>
>                 <div wicket:id="startTime"></div>
>             </td>
>     </tr>
>     <tr>
>             <td>
>                 <wicket:message key="form.endTime"></wicket:message>
>             </td>
>             <td>
>                 <div wicket:id="endTime"></div>
>             </td>
>     </tr>
> </wicket:enclosure>
> <JAVA>
> Executing within the parent container:
> get("startDate").setVisible(false); 
> <Exception>
> Causes:
> WicketMessage: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered).
> 1. [MarkupContainer [Component id = endTime, page = il.ac.shenkar.web.ui.orders.createorder.CreateOrder, path = 1:Form:endTime.OrderTimeField, isVisible = true, isVersioned = false]]
> 2. [MarkupContainer [Component id = hours, page = il.ac.shenkar.web.ui.orders.createorder.CreateOrder, path = 1:Form:endTime:hours.TextField, isVisible = true, isVersioned = false]]
> 3. [MarkupContainer [Component id = minutes, page = il.ac.shenkar.web.ui.orders.createorder.CreateOrder, path = 1:Form:endTime:minutes.OrderTimeField$1, isVisible = true, isVersioned = false]]
> Root cause:
> org.apache.wicket.WicketRuntimeException: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered).
> 1. [MarkupContainer [Component id = endTime, page = il.ac.shenkar.web.ui.orders.createorder.CreateOrder, path = 1:Form:endTime.OrderTimeField, isVisible = true, isVersioned = false]]
> 2. [MarkupContainer [Component id = hours, page = il.ac.shenkar.web.ui.orders.createorder.CreateOrder, path = 1:Form:endTime:hours.TextField, isVisible = true, isVersioned = false]]
> 3. [MarkupContainer [Component id = minutes, page = il.ac.shenkar.web.ui.orders.createorder.CreateOrder, path = 1:Form:endTime:minutes.OrderTimeField$1, isVisible = true, isVersioned = false]]
> startTime and endTime are wicket panels of the same type (same component) and they each contain two textfields: hours and minutes.

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