[
https://issues.apache.org/jira/browse/WICKET-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Frank Bille Jensen updated WICKET-1091:
---------------------------------------
Fix Version/s: (was: 1.3.0-rc2)
1.3.0-rc3
> 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
> Assignee: Igor Vaynberg
> Fix For: 1.3.0-rc3
>
>
> 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.