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

-- 
View this message in context: 
http://www.nabble.com/ajax-refresh-on-date-picker-tf2314518.html#a6465102
Sent from the Wicket - User mailing list archive at 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
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to