I think that with this new behavior it might now be impossible to use a 
component resolver to resolve components within an enclosure (that's my 
experience at least - they work fine inside enclosures for 1.4.2 but not in 
later versions):

I'm trying to work out how the changed behavior broke code that was working 
fine in 1.4.2 and have 2 possible theories:

1. As component resolvers are effectively only adding components 'on demand' 
then maybe the 'demand' is not forthcoming due to some change in the way 
enclosures are rendered in > 1.4.2. i.e. the container is not visible so no 
request to resolve other internal components is forthcoming and so 'on demand' 
results in those other components not being added.

Or

2. Perhaps some intermediate but effectively transparent 'parent' container 
component is explicitly added in > 1.4.2 and the component resolver needs to 
add its components to that new transparent container instead of where it has 
traditionally added the components.

Just theories at this stage... ;)

> -----Original Message-----
> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
> Sent: Saturday, 6 February 2010 3:04 AM
> To: users@wicket.apache.org
> Subject: Re: wicket enclosure not finding child!?
> 
> why dont you start a vote to have this changed back to pre-1.4.2
> behavior. if enough people agree we would have no problem applying the
> change.
> 
> -igor
> 
> On Fri, Feb 5, 2010 at 1:13 AM, Girts Ziemelis <girts.zieme...@gmail.com>
> wrote:
> > According to the developers this was a "bug" in a the original
> "enclosure"
> > implementation, which allowed NOT to add all child components (if
> enclosure
> > is not shown on page). Now since version 1.4.2 it is "corrected".
> > So you have to add both object_title_classification_prefix, and
> > object_title_classification in both cases, when enclosure IS displayed
> and
> > when it is NOT.
> > For the same reason I am still on 1.4.1, so this is only my guess ...
> >
> > See mailing list archives for enclosure related topics, e.g.
> > http://old.nabble.com/Re:-enclosure-changes-in-1.4.4-p26763772.html
> >
> > Girts Ziemelis
> >
> > On 02/05/2010 12:06 AM, Chris Colman wrote:
> >>
> >> I've found the problem with any version after 1.4.2. With 1.4.2 I seem
> >> to be able to use enclosures just fine - even when the children are
> >> supplied by a component resolver - but any 1.4.3, 1.4.4 and 1.4.5 cause
> >> problems. I haven't yet tried 1.4.6 but from what you're saying it
> >> probably has the same problem.
> >>
> >> Chris Colman
> >> Step Ahead Software
> >> http://develop.stepaheadsoftware.com
> >>
> >>
> >>>
> >>> -----Original Message-----
> >>> From: Roman Uhlig Maxity.de [mailto:roman.uh...@maxity.de]
> >>> Sent: Friday, 5 February 2010 2:23 AM
> >>> To: users@wicket.apache.org
> >>> Subject: Re: wicket enclosure not finding child!?
> >>>
> >>>
> >>> I just upgraded from 1.4.1 to 1.4.6 and now I'm getting this error too
> >>> without changing anything else in my source code:
> >>>
> >>> 04 Feb 2010 16:01:20,352 ERROR [org.apache.wicket.RequestCycle:1521]
> >>> Could not find child with id: object_title_classification_prefix in
> >>>
> >>
> >> the
> >>
> >>>
> >>> wicket:enclosure
> >>> org.apache.wicket.WicketRuntimeException: Could not find child with
> >>>
> >>
> >> id:
> >>
> >>>
> >>> object_title_classification_prefix in the wicket:enclosure
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.markup.html.internal.Enclosure.checkChildComponent(Enc
> >>
> >>>
> >>> losure.java:220)
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.markup.html.internal.Enclosure.ensureAllChildrenPresen
> >>
> >>>
> >>> t(Enclosure.java:262)
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.markup.html.internal.Enclosure.onComponentTagBody(Encl
> >>
> >>>
> >>> osure.java:169)
> >>>         at
> >>> org.apache.wicket.Component.renderComponent(Component.java:2619)
> >>>         at
> >>> org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
> >>>         at org.apache.wicket.Component.render(Component.java:2450)
> >>>         at
> >>> org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.markup.resolver.EnclosureResolver.resolve(EnclosureRes
> >>
> >>>
> >>> olver.java:61)
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentRe
> >>
> >>>
> >>> solvers.java:81)
> >>>         at
> >>>
> >>>
> >>
> >> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
> >>
> >>>
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer
> >>
> >>>
> >>> .java:1577)
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.jav
> >>
> >>>
> >>> a:1501)
> >>>         at
> >>> org.apache.wicket.Component.renderComponent(Component.java:2619)
> >>>         at
> >>> org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
> >>>         at org.apache.wicket.Component.render(Component.java:2450)
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.markup.repeater.AbstractRepeater.renderChild(AbstractR
> >>
> >>>
> >>> epeater.java:122)
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.markup.repeater.AbstractRepeater.onRender(AbstractRepe
> >>
> >>>
> >>> ater.java:103)
> >>>         at org.apache.wicket.Component.render(Component.java:2450)
> >>>         at
> >>>
> >>>
> >>
> >> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
> >>
> >>>
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer
> >>
> >>>
> >>> .java:1577)
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.jav
> >>
> >>>
> >>> a:1501)
> >>>         at
> >>> org.apache.wicket.Component.renderComponent(Component.java:2619)
> >>>         at
> >>> org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
> >>>         at org.apache.wicket.Component.render(Component.java:2450)
> >>>         at
> >>> org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(Mark
> >>
> >>>
> >>> upInheritanceResolver.java:66)
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentRe
> >>
> >>>
> >>> solvers.java:81)
> >>>         at
> >>>
> >>>
> >>
> >> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
> >>
> >>>
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer
> >>
> >>>
> >>> .java:1577)
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.jav
> >>
> >>>
> >>> a:1501)
> >>>         at
> >>> org.apache.wicket.Component.renderComponent(Component.java:2619)
> >>>         at
> >>> org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
> >>>         at org.apache.wicket.Component.render(Component.java:2450)
> >>>         at
> >>> org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(Mark
> >>
> >>>
> >>> upInheritanceResolver.java:73)
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentRe
> >>
> >>>
> >>> solvers.java:81)
> >>>         at
> >>>
> >>>
> >>
> >> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
> >>
> >>>
> >>>         at
> >>> org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1528)
> >>>         at org.apache.wicket.Page.onRender(Page.java:1565)
> >>>         at org.apache.wicket.Component.render(Component.java:2450)
> >>>         at org.apache.wicket.Page.renderPage(Page.java:914)
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.request.target.component.BookmarkablePageRequestTarget
> >>
> >>>
> >>> .respond(BookmarkablePageRequestTarget.java:261)
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(Abstract
> >>
> >>>
> >>> RequestCycleProcessor.java:105)
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java
> >>
> >>>
> >>> :1258)
> >>>         at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
> >>>         at
> >>>
> >>
> >> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
> >>
> >>>
> >>>         at
> >>>
> >>
> >> org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
> >>
> >>>
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479
> >>
> >>>
> >>> )
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:
> >>
> >>>
> >>> 312)
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
> >>
> >>>
> >>> Source)
> >>>         at
> >>> org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
> >>>
> >>
> >> Source)
> >>
> >>>
> >>>         at
> >>>
> >>
> >> org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
> >>
> >>>
> >>> Source)
> >>>         at
> >>>
> >>
> >> org.apache.catalina.core.StandardContextValve.invoke(Unknown
> >>
> >>>
> >>> Source)
> >>>         at org.apache.catalina.core.StandardHostValve.invoke(Unknown
> >>> Source)
> >>>         at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown
> >>> Source)
> >>>         at org.apache.catalina.core.StandardEngineValve.invoke(Unknown
> >>> Source)
> >>>         at org.apache.catalina.connector.CoyoteAdapter.service(Unknown
> >>> Source)
> >>>         at org.apache.coyote.http11.Http11Processor.process(Unknown
> >>> Source)
> >>>         at
> >>>
> >>>
> >>
> >>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
> >>
> >>>
> >>> Unknown Source)
> >>>         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(Unknown
> >>> Source)
> >>>         at java.lang.Thread.run(Thread.java:619)
> >>>
> >>>
> >>> HTML (edited):
> >>>
> >>> &lt;wicket:enclosure child="object_title_classification"&gt;
> >>>     &lt;img wicket:id="object_title_classification_prefix" border="0"
> >>> alt="" /&gt;
> >>>     &lt;img wicket:id="object_title_classification" border="0" alt=""
> >>> /&gt;
> >>> &lt;/wicket:enclosure&gt;
> >>>
> >>> Kind regards,
> >>> Roman
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >>> For additional commands, e-mail: users-h...@wicket.apache.org
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to