please see below.

/iulian

On 2/8/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
could you please provide the stripped down java code and html markup for the page?

the code is part of wicket-contrib-gmap module, GMarkerContainer and parent markup in GMapPanel.

it sounds like the relative path should be myPanel:myLoop:0:myComponent

true, component's the relative path is like the one above.
and sorry for this confusion, I was talking about Component.initializeMarkupStream implementation, there is a relativePath variable and then markupStream.findComponentIndex method is called. inside this method elementsPath is calculated based on existing markup.
thus relativePath and elementsPath do not match (becasue of extra :0) and exception is thrown.

the path it uses is page-relative path, so the only thing it should be missing is the page's pagemap id.


-Igor



On 2/7/06, Iulian-Corneliu Costan < [EMAIL PROTECTED]> wrote:
I have loop container and each element has one ajaxhandler attached.
First element in this loop is :myPanel:myLoop:0:myComponent and on ajax request targeting this element markupStream.findComponentIndex method is trying to find myComponent within this :myLoop:0 relative path, but there is no such a path in markupStream (markup contains :myLoop path only) and I end up with this exception:

wicket.WicketRuntimeException: Unable to determine markup for component: [MarkupContainer [Component id = gmarkerContainer, page = wicket.contrib.examples.gmap.HomePage, path = 9:gmap:gmapContainer:gmarkersLoop:1:


gmarkerContainer.GMarkerContainer, isVisible = true, isVersioned = true]]
at wicket.request.target.ComponentRequestTarget.respond(ComponentRequestTarget.java:73)
at wicket.request.compound.DefaultResponseStrategy.respond

(DefaultResponseStrategy.java:47)
at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)
at wicket.RequestCycle.doProcessEventsAndRespond
(RequestCycle.java
:811)

I dont know which is correct behavior but I think relative path has to be :myLoop instead of


 :myLoop:0.
/iulian



Reply via email to