[ 
https://issues.apache.org/jira/browse/WICKET-629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eelco Hillenius resolved WICKET-629.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3.0-beta2

> NPE when using DatePicker with DateTextField
> --------------------------------------------
>
>                 Key: WICKET-629
>                 URL: https://issues.apache.org/jira/browse/WICKET-629
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 1.3.0-beta1
>         Environment: Using SNAPSHOT from 2007-06-08
>            Reporter: Tim Schafer
>            Assignee: Eelco Hillenius
>             Fix For: 1.3.0-beta2
>
>
> form.add(new 
> org.apache.wicket.extensions.markup.html.form.DateTextField("shipDate").add(new
>  DatePicker()));
> <input type="text" wicket:id="shipDate" id="shipDate" size="10" /><br/>
> WicketMessage: Exception in rendering component: [MarkupContainer [Component 
> id = -header, page = kls.wicket.page.hp.demo.DemoBookingPage, path = 
> 38:-header.HtmlHeaderContainer, isVisible = true, isVersioned = true]]Root 
> cause:java.lang.NullPointerException     at 
> org.apache.wicket.extensions.markup.html.form.DateTextField.getTextFormat(DateTextField.java:166)
>      at 
> org.apache.wicket.extensions.yui.calendar.DatePicker.getDatePattern(DatePicker.java:394)
>      at 
> org.apache.wicket.extensions.yui.calendar.DatePicker.renderHead(DatePicker.java:149)
>      at org.apache.wicket.Component.renderHead(Component.java:2170)     at 
> org.apache.wicket.markup.html.internal.HtmlHeaderContainer$1.component(HtmlHeaderContainer.java:221)
>      at 
> org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:820)     
> at org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:835)  
>    at 
> org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:860)     
> at 
> org.apache.wicket.markup.html.internal.HtmlHeaderContainer.renderHeaderSections(HtmlHeaderContainer.java:212)
>      at 
> org.apache.wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:146)
>      at org.apache.wicket.Component.renderComponent(Component.java:2092)     
> at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1294)     
> at org.apache.wicket.Component.render(Component.java:1919)     at 
> org.apache.wicket.Component.render(Component.java:1882)     at 
> org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:223)     at 
> org.apache.wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:81)
>      at 
> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1206)     
> at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1311)     
> at org.apache.wicket.Page.onRender(Page.java:1422)     at 
> org.apache.wicket.Component.render(Component.java:1919)     at 
> org.apache.wicket.Page.renderPage(Page.java:927)     at 
> org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:165)
>      at 
> org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:59)
>      at 
> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103)
>      at 
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1053)
>      at org.apache.wicket.RequestCycle.step(RequestCycle.java:1123)     at 
> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1192)     at 
> org.apache.wicket.RequestCycle.request(RequestCycle.java:510)     at 
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:255)     
> at 
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:125)  
>    at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>      at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>      at 
> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
>      at 
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
>      at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>      at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>      at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
>      at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>      at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) 
>     at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) 
>     at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>      at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)   
>   at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)    
>  at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)     
> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)     at 
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)  
>    at 
> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
>      at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:686)
>      at java.lang.Thread.run(Unknown Source)Complete 
> stack:org.apache.wicket.WicketRuntimeException: Exception in rendering 
> component: [MarkupContainer [Component id = -header, page = 
> kls.wicket.page.hp.demo.DemoBookingPage, path = 
> 38:-header.HtmlHeaderContainer, isVisible = true, isVersioned = true]]     at 
> org.apache.wicket.Component.renderComponent(Component.java:2119)     at 
> org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1294)     at 
> org.apache.wicket.Component.render(Component.java:1919)     at 
> org.apache.wicket.Component.render(Component.java:1882)     at 
> org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:223)     at 
> org.apache.wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:81)
>      at 
> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1206)     
> at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1311)     
> at org.apache.wicket.Page.onRender(Page.java:1422)     at 
> org.apache.wicket.Component.render(Component.java:1919)     at 
> org.apache.wicket.Page.renderPage(Page.java:927)     at 
> org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:165)
>      at 
> org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:59)
>      at 
> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103)
>      at 
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1053)
>      at org.apache.wicket.RequestCycle.step(RequestCycle.java:1123)     at 
> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1192)     at 
> org.apache.wicket.RequestCycle.request(RequestCycle.java:510)     at 
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:255)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to