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

Martijn Dashorst commented on WICKET-993:
-----------------------------------------

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. [Component id = label4, page = 
wicket.in.action.chapter06.operations.OperationsPage, path = 
6:example3:label4.Label, 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. [Component id = label4, page = 
wicket.in.action.chapter06.operations.OperationsPage, path = 
6:example3:label4.Label, isVisible = true, isVersioned = false]

     at org.apache.wicket.Page.checkRendering(Page.java:1078)
     at org.apache.wicket.Page.renderPage(Page.java:892)
     at 
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
     at 
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103)
     at 
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1025)
     at org.apache.wicket.RequestCycle.step(RequestCycle.java:1094)
     at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1173)
     at org.apache.wicket.RequestCycle.request(RequestCycle.java:483)
     at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:277)
     at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:129)
     at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1041)
     at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:354)
     at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226)
     at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627)
     at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
     at org.mortbay.jetty.Server.handle(Server.java:269)
     at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430)
     at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:687)
     at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:492)
     at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199)
     at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339)
     at 
org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.java:270)
     at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)

> wicket:enclosure doesn't work with multiple child components
> ------------------------------------------------------------
>
>                 Key: WICKET-993
>                 URL: https://issues.apache.org/jira/browse/WICKET-993
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta3
>            Reporter: Martijn Dashorst
>             Fix For: 1.3.0-beta4
>
>
> <div wicket:id="example3">
>     <h3>Example 3 using wicket:enclosure</h3>
>     <span wicket:id="label1"></span><br />
>     <span wicket:id="label2"></span><br />
>     <wicket:enclosure child="label3">
>         <span wicket:id="label3"></span><br />
>         <span wicket:id="label4"></span><br />
>     </wicket:enclosure>
> </div>
>         WebMarkupContainer example3 = new WebMarkupContainer("example3");
>         example3.add(new Label("label1", "label 1"));
>         example3.add(new Label("label2", "label 2"));
>         example3.add(new Label("label3", "label 3"));
>         example3.add(new Label("label4", "label 4"));
>         add(example3);
>         example3.get("label3").setVisible(false);
> Gives an error that label4 is not added to the page

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