The fix is in svn. (both 1.x and 2.0) DatePicker in modal window panel now works, although the issue with z-index still remains. As a side effect this also fixes the component use check for components that render into head, so calling getDebugSettings().setComponentUseCheck(false) in application#init is no longer necessary.
I'd appreciate if everyone who has issues with header contribution test it with current svn. The more bugs we nail down the better! :) -Matej Matej Knopp wrote: > Hi, > > It indeed is problem with modal window. Or, better said, with > AjaxRequestTarget. I've tried to put date picker to modal window, and it > didn't work. The reason is that component is not attached when rendering > it's header contribution from AjaxRequestTarget. I've tried to refactor > AjaxRequestTarget a bit to call responseComponent first, and that way it > worked (of course the problem with date picker having lower z order than > modal window is still there). > > Anyway, to fix this, we have to refactor AjaxRequestTarget to render > component prior rendering the header contribution (although in response > these should be reversed, e.g. header contribution before component > body). And the header contribution should be rendered between > page.startComponentRender(component) and > page.endComponentRender(component); > > -Matej > > samyem wrote: >> Well it might actually be just a problem with this component. In my case, all >> I have is a date picker in a modal window which is shown as a result of >> clicking on a link. This produced the shown error and the modal window fail >> to display. I am sure you can replicate this condition with the current SVN >> source with this much info. >> >> - Samyem >> >> >> Matej Knopp wrote: >>> I don'y really understand why. I was able to reproduce the problem with >>> the files attached to bug report. And after I fixed the debug console, >>> the problems were no longer there (though there was other problem - >>> component not rendered except - for which it is necessary to disable >>> component render check, at least for now). >>> >>> Are you sure you have cleared the browser cache? >>> >>> So far I had no problems with ajax header contribution apart from this >>> one. But that doesn't mean there are none. Can you please provide a >>> testcase/quick start for the problems you are encountering now? >>> >>> Thanks, >>> -Matej >>> >>> samyem wrote: >>>> The header contribution logic seems to be still flawed. The javascript >>>> references were not added to the HTML's HEAD at all when the component is >>>> added by ajax. I guess this is a larger problem than the date picker. The >>>> same problem would occur everytime the javascript/stylesheet are added >>>> dynamically. >>>> >>>> >>>> Matej Knopp wrote: >>>>> Well, I was working on it. But only to the degree that I disabled the >>>>> disabling of check during ajax request, because it was no longer >>>>> necessary. >>>>> >>>>> Unfortunately head contribution is something else, I'm not sure how to >>>>> do it the best way, again, it's not my domain. I think that I've posted >>>>> mail about it to the list, I'm not sure what the outcome was. >>>>> >>>>> -Matej >>>>> >>>>> Igor Vaynberg wrote: >>>>>> i thought you _were_ working on the component use check and ajax target >>>>>> stuff? >>>>>> >>>>>> -Igor >>>>>> >>>>>> >>>>>> On 9/22/06, *Matej Knopp* < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> >>>>>> wrote: >>>>>> >>>>>> I don't think so. I was working on header contribution and problem >>>>>> with >>>>>> debug console calling document.write() (thus removing all head >>>>>> elements >>>>>> from DOM). >>>>>> >>>>>> This is something completely different, it's related to the >>>>>> component >>>>>> rendered check. That's not my domain. I believe the problem are >>>>>> components in <wicket:head> section of DataPicker. >>>>>> >>>>>> Anyway, what can temporary help is to disable component render >>>>>> check >>>>>> in >>>>>> appication settings. Juergen? >>>>>> >>>>>> -Matej >>>>>> >>>>>> Igor Vaynberg wrote: >>>>>> > matej was working to fix this, i thought he did.... matej? >>>>>> > >>>>>> > -Igor >>>>>> > >>>>>> > >>>>>> > On 9/21/06, *samyem* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >>>>>> <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> > wrote: >>>>>> > >>>>>> > >>>>>> > I took the latest SVN code today and suddenly, I am getting >>>>>> the >>>>>> > following >>>>>> > error everytime there is an ajax refresh on panels with date >>>>>> pickers: >>>>>> > >>>>>> > 2006-09-21 14:16:07,728 ERROR wicket.ajax.AjaxRequestTarget >>>>>> - >>>>>> Error >>>>>> > while >>>>>> > responding to an AJAX request: [EMAIL PROTECTED] >>>>>> > markupIdToComponent [{pageBody_sidePanel=[MarkupContainer >>>>>> [Component >>>>>> > id = >>>>>> > sidePanel, page = >>>>>> com.wsi.mm.ui.directship.item.ItemDirectShipPage, >>>>>> > path = >>>>>> > 4:pageBody:sidePanel.DirectShipSideBarPanel, isVisible = >>>>>> true, >>>>>> > isVersioned = >>>>>> > false]]}], prependJavascript [[]], appendJavascript [[var >>>>>> win; >>>>>> > try { >>>>>> > win = window.parent.Wicket.Window; >>>>>> > } catch (ignore) { >>>>>> > } >>>>>> > if (typeof(win) != "undefined" && typeof(win.current ) != >>>>>> "undefined") { >>>>>> > window.parent.setTimeout(function() { >>>>>> > win.current.close(); >>>>>> > }, 0); >>>>>> > }]] >>>>>> > 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 = calendarMain, page = >>>>>> > com.wsi.mm.ui.directship.item.ItemDirectShipPage , path = >>>>>> > >>>>>> >>>>>> 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarMain.JavaScriptReference, >>>>>> > isVisible = true, isVersioned = false]] >>>>>> > 2. [MarkupContainer [Component id = calendarSetup, page = >>>>>> > com.wsi.mm.ui.directship.item.ItemDirectShipPage , path = >>>>>> > >>>>>> >>>>>> 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarSetup.JavaScriptReference >>>>>> , >>>>>> > isVisible = true, isVersioned = false]] >>>>>> > 3. [MarkupContainer [Component id = calendarLanguage, page = >>>>>> > com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = >>>>>> > >>>>>> 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker: >>>>>> calendarLanguage.JavaScriptReference, >>>>>> > isVisible = true, isVersioned = false]] >>>>>> > 4. [MarkupContainer [Component id = calendarStyle, page = >>>>>> > com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = >>>>>> > >>>>>> >>>>>> 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarStyle.StyleSheetReference, >>>>>> > isVisible = true, isVersioned = false]] >>>>>> > >>>>>> > at wicket.Page.checkRendering (Page.java:1105) >>>>>> > at wicket.Page.endComponentRender(Page.java:431) >>>>>> > at >>>>>> > >>>>>> >>>>>> wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:467) >>>>>> > at wicket.ajax.AjaxRequestTarget.respond >>>>>> > (AjaxRequestTarget.java:353) >>>>>> > at >>>>>> > >>>>>> >>>>>> wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49) >>>>>> > at >>>>>> > >>>>>> >>>>>> wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond >>>>>> > (AbstractCompoundRequestCycleProcessor.java:66) >>>>>> > at >>>>>> > >>>>>> >>>>>> wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:868) >>>>>> > at >>>>>> > wicket.RequestCycle.processEventsAndRespond >>>>>> (RequestCycle.java:900) >>>>>> > at wicket.RequestCycle.step(RequestCycle.java:976) >>>>>> > at wicket.RequestCycle.steps(RequestCycle.java:1050) >>>>>> > at wicket.RequestCycle.request(RequestCycle.java >>>>>> :454) >>>>>> > at wicket.protocol.http.WicketServlet.doGet >>>>>> > (WicketServlet.java:217) >>>>>> > at >>>>>> > >>>>>> wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:260) >>>>>> > at >>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:760) >>>>>> > at javax.servlet.http.HttpServlet.service >>>>>> (HttpServlet.java:853) >>>>>> > at >>>>>> > org.mortbay.jetty.servlet.ServletHolder.handle >>>>>> (ServletHolder.java:358) >>>>>> > at >>>>>> > >>>>>> >>>>>> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) >>>>>> > at >>>>>> > org.mortbay.jetty.servlet.ServletHandler.handle >>>>>> (ServletHandler.java:567) >>>>>> > at >>>>>> org.mortbay.http.HttpContext.handle(HttpContext.java:1807) >>>>>> > at >>>>>> > >>>>>> >>>>>> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java >>>>>> >>>>>> > :525) >>>>>> > at >>>>>> org.mortbay.http.HttpContext.handle(HttpContext.java:1757) >>>>>> > at >>>>>> org.mortbay.http.HttpServer.service(HttpServer.java:879) >>>>>> > at >>>>>> > org.mortbay.http.HttpConnection.service (HttpConnection.java >>>>>> :790) >>>>>> > at >>>>>> > >>>>>> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961) >>>>>> > at >>>>>> > org.mortbay.http.HttpConnection.handle(HttpConnection.java >>>>>> :807) >>>>>> > at >>>>>> > org.mortbay.http.SocketListener.handleConnection >>>>>> > (SocketListener.java:218) >>>>>> > at >>>>>> > org.mortbay.util.ThreadedServer.handle(ThreadedServer.java >>>>>> :300) >>>>>> > at >>>>>> > >>>>>> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511) >>>>>> > >>>>>> > Is there anything I can do to get rid of this error? Or is >>>>>> it >>>>>> a >>>>>> > wicket bug? >>>>>> > -- >>>>>> > View this message in context: >>>>>> > >>>>>> >>>>>> http://www.nabble.com/ajax-refresh-on-date-picker-tf2314518.html#a6436806 >>>>>> > Sent from the Wicket - User mailing list archive at >>>>>> Nabble.com <http://Nabble.com> >>>>>> > <http://Nabble.com>. >>>>>> > >>>>>> > >>>>>> > >>>>>> >>>>>> ------------------------------------------------------------------------- >>>>>> > Take Surveys. Earn Cash. Influence the Future of IT >>>>>> > Join SourceForge.net's Techsay panel and you'll get the >>>>>> chance >>>>>> to >>>>>> > share your >>>>>> > opinions on IT & business topics through brief surveys -- >>>>>> and >>>>>> earn cash >>>>>> > >>>>>> >>>>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>>>>> >>>>>> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> >>>>>> > >>>>>> >>>>>> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>>>>> >>>>>> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>> >>>>>> > _______________________________________________ >>>>>> > Wicket-user mailing list >>>>>> > Wicket-user@lists.sourceforge.net >>>>>> <mailto:Wicket-user@lists.sourceforge.net> >>>>>> > <mailto: Wicket-user@lists.sourceforge.net >>>>>> <mailto:Wicket-user@lists.sourceforge.net>> >>>>>> > https://lists.sourceforge.net/lists/listinfo/wicket-user >>>>>> <https://lists.sourceforge.net/lists/listinfo/wicket-user> >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> >>>>>> ------------------------------------------------------------------------ >>>>>> > >>>>>> > >>>>>> >>>>>> ------------------------------------------------------------------------- >>>>>> > Take Surveys. Earn Cash. Influence the Future of IT >>>>>> > Join SourceForge.net's Techsay panel and you'll get the chance >>>>>> to >>>>>> share your >>>>>> > opinions on IT & business topics through brief surveys -- and >>>>>> earn cash >>>>>> > >>>>>> >>>>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>>>>> >>>>>> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> >>>>>> > >>>>>> > >>>>>> > >>>>>> >>>>>> ------------------------------------------------------------------------ >>>>>> > >>>>>> > _______________________________________________ >>>>>> > Wicket-user mailing list >>>>>> > Wicket-user@lists.sourceforge.net >>>>>> <mailto:Wicket-user@lists.sourceforge.net> >>>>>> > https://lists.sourceforge.net/lists/listinfo/wicket-user >>>>>> <https://lists.sourceforge.net/lists/listinfo/wicket-user> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------- >>>>>> Take Surveys. Earn Cash. Influence the Future of IT >>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to >>>>>> share your >>>>>> opinions on IT & business topics through brief surveys -- and earn >>>>>> cash >>>>>> >>>>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>>>>> >>>>>> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> >>>>>> _______________________________________________ >>>>>> Wicket-user mailing list >>>>>> Wicket-user@lists.sourceforge.net >>>>>> <mailto:Wicket-user@lists.sourceforge.net> >>>>>> https://lists.sourceforge.net/lists/listinfo/wicket-user >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------ >>>>>> >>>>>> ------------------------------------------------------------------------- >>>>>> Take Surveys. Earn Cash. Influence the Future of IT >>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to share >>>>>> your >>>>>> opinions on IT & business topics through brief surveys -- and earn cash >>>>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------ >>>>>> >>>>>> _______________________________________________ >>>>>> Wicket-user mailing list >>>>>> Wicket-user@lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/wicket-user >>>>> ------------------------------------------------------------------------- >>>>> Take Surveys. Earn Cash. Influence the Future of IT >>>>> Join SourceForge.net's Techsay panel and you'll get the chance to share >>>>> your >>>>> opinions on IT & business topics through brief surveys -- and earn cash >>>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>>>> _______________________________________________ >>>>> Wicket-user mailing list >>>>> Wicket-user@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/wicket-user >>>>> >>>>> >>> ------------------------------------------------------------------------- >>> Take Surveys. Earn Cash. Influence the Future of IT >>> Join SourceForge.net's Techsay panel and you'll get the chance to share >>> your >>> opinions on IT & business topics through brief surveys -- and earn cash >>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>> _______________________________________________ >>> Wicket-user mailing list >>> Wicket-user@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/wicket-user >>> >>> > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user