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


<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>

Executing within the parent container:
get("startDate").setVisible(true); 

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]]

when the Panel has:

add(hoursField = new TextField("hours", new PropertyModel(this, "hours"), 
Integer.class));
add(minutesField = new TextField("minutes", new PropertyModel(this, "minutes"),



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

Reply via email to