You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martijn Dashorst (JIRA)" <ji...@apache.org> on 2007/09/21 00:26:50 UTC

[jira] Created: (WICKET-993) wicket:enclosure doesn't work with multiple child components

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.


[jira] Assigned: (WICKET-993) wicket:enclosure doesn't work with multiple child components

Posted by "Juergen Donnerstag (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juergen Donnerstag reassigned WICKET-993:
-----------------------------------------

    Assignee: Juergen Donnerstag

> 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
>            Assignee: Juergen Donnerstag
>             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.


[jira] Commented: (WICKET-993) wicket:enclosure doesn't work with multiple child components

Posted by "Martijn Dashorst (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529633 ] 

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

The usecase is that the enclosure should hide all child components when the identified component by the child attribute is hidden. The idea is that you don't need to add your own web markup container for this. Otherwise the child id is a useless attribute -> with only one child component it is easy to detect the visiblity.

> 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
>            Assignee: Juergen Donnerstag
>             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.


[jira] Commented: (WICKET-993) wicket:enclosure doesn't work with multiple child components

Posted by "Martijn Dashorst (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (WICKET-993) wicket:enclosure doesn't work with multiple child components

Posted by "Juergen Donnerstag (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529622 ] 

Juergen Donnerstag commented on WICKET-993:
-------------------------------------------

Though I was able to reproduce it, I wonder what the the use case is? Or are you asking for a better error message?

Juergen

> 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
>            Assignee: Juergen Donnerstag
>             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.


[jira] Resolved: (WICKET-993) wicket:enclosure doesn't work with multiple child components

Posted by "Juergen Donnerstag (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juergen Donnerstag resolved WICKET-993.
---------------------------------------

    Resolution: Fixed

fixed

> 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
>            Assignee: Juergen Donnerstag
>             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.