Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5286

o.a.w.extensions.markup.html.form.DateTextField should be applicable to HTML5 date input types

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.9.1
    • Fix Version/s: 7.0.0-M1
    • Component/s: wicket-extensions
    • Labels:
      None

      Description

      Markup:

      <input type="date" wicket:id="startDateFld"/>
      

      Java:

      add(new DateTextField("startDateFld", new Model<Date>()));
      

      It should accept the following HTML5 input types:

      1. date
      2. datetime
      3. datetime-local
      4. month
      5. time
      6. week

      Error:

      Component [startDateFld] (path = [24:compId:startDateFld]) must be applied to a tag with [type] attribute matching [text], not [date]
       MarkupStream: [markup = file:/home/ceefour/git/quikdo-hub/freq.web/target/classes/com/quikdo/freq/web/DateRangePanel.html
      <input type="date" wicket:id="startDateFld"/>, index = 0, current =  '<input type="date" wicket:id="startDateFld"/>' (line 0, column 0)]
           at org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:526)
           at org.apache.wicket.Component.checkComponentTagAttribute(Component.java:3578)
           at org.apache.wicket.markup.html.form.TextField.onComponentTag(TextField.java:104)
           at org.apache.wicket.Component.internalRenderComponent(Component.java:2520)
           at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1493)
           at org.apache.wicket.Component.internalRender(Component.java:2379)
           at org.apache.wicket.Component.render(Component.java:2307)
           at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1390)
           at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1554)
           at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1529)
           at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:689)
           at org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:76)
           at org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112)
           at org.apache.wicket.Component.internalRenderComponent(Component.java:2549)
           at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1493)
           at org.apache.wicket.Component.internalRender(Component.java:2379)
           at org.apache.wicket.Component.render(Component.java:2307)
           at org.apache.wicket.core.util.string.ComponentRenderer.renderComponent(ComponentRenderer.java:107)
           at com.quikdo.freq.web.FrequencyPage$FrequencyForm$1.load(FrequencyPage.java:91)
           at com.quikdo.freq.web.FrequencyPage$FrequencyForm$1.load(FrequencyPage.java:1)
           at org.apache.wicket.model.LoadableDetachableModel.getObject(LoadableDetachableModel.java:121)
           at de.agilecoders.wicket.core.markup.html.bootstrap.components.PopoverBehavior.newContent(PopoverBehavior.java:68)
           at de.agilecoders.wicket.core.markup.html.bootstrap.components.PopoverBehavior.onComponentTag(PopoverBehavior.java:47)
           at org.apache.wicket.Component.renderComponentTag(Component.java:3970)
           at org.apache.wicket.Component.internalRenderComponent(Component.java:2540)
           at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1493)
           at org.apache.wicket.Component.internalRender(Component.java:2379)
           at org.apache.wicket.Component.render(Component.java:2307)
           at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1390)
           at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1554)
           at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1529)
           at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1484)
           at org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1683)
           at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
           at org.apache.wicket.Component.internalRenderComponent(Component.java:2549)
           at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1493)
           at org.apache.wicket.Component.internalRender(Component.java:2379)
           at org.apache.wicket.Component.render(Component.java:2307)
           at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1390)
           at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1554)
           at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1529)
           at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1484)
           at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
           at org.apache.wicket.Component.internalRenderComponent(Component.java:2549)
           at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1493)
           at org.apache.wicket.Component.internalRender(Component.java:2379)
           at org.apache.wicket.Component.render(Component.java:2307)
           at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1390)
           at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1554)
           at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1529)
           at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1484)
           at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
           at org.apache.wicket.Component.internalRenderComponent(Component.java:2549)
           at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1493)
           at org.apache.wicket.Component.internalRender(Component.java:2379)
           at org.apache.wicket.Component.render(Component.java:2307)
           at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1390)
           at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1554)
           at org.apache.wicket.Page.onRender(Page.java:876)
           at org.apache.wicket.markup.html.WebPage.onRender(WebPage.java:142)
           at org.apache.wicket.Component.internalRender(Component.java:2379)
           at org.apache.wicket.Component.render(Component.java:2307)
           at org.apache.wicket.Page.renderPage(Page.java:1010)
           at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:121)
           at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:271)
           at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:165)
           at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:861)
           at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
           at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
           at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
           at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
           at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
           at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
           at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
           at org.atmosphere.util.AtmosphereFilterChain.doFilter(AtmosphereFilterChain.java:155)
           at org.atmosphere.util.AtmosphereFilterChain.invokeFilterChain(AtmosphereFilterChain.java:132)
           at org.atmosphere.handler.ReflectorServletProcessor$FilterChainServletWrapper.service(ReflectorServletProcessor.java:314)
           at org.atmosphere.handler.ReflectorServletProcessor.onRequest(ReflectorServletProcessor.java:172)
           at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:259)
           at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:166)
           at org.atmosphere.container.BlockingIOCometSupport.service(BlockingIOCometSupport.java:101)
           at org.atmosphere.container.Tomcat7BIOSupportWithWebSocket.doService(Tomcat7BIOSupportWithWebSocket.java:65)
           at org.atmosphere.container.TomcatWebSocketUtil.doService(TomcatWebSocketUtil.java:87)
           at org.atmosphere.container.Tomcat7BIOSupportWithWebSocket.service(Tomcat7BIOSupportWithWebSocket.java:61)
           at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:1441)
           at org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:296)
           at org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:282)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
           at com.codahale.metrics.servlet.AbstractInstrumentedFilter.doFilter(AbstractInstrumentedFilter.java:97)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
           at ch.qos.logback.classic.selector.servlet.LoggerContextFilter.doFilter(LoggerContextFilter.java:70)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
           at org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:123)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
           at org.apache.catalina.core.StandardHostValve.__invoke(StandardHostValve.java:171)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
           at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
           at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)
           at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
           at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1686)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
           at java.lang.Thread.run(Thread.java:724)
      

        Attachments

          Activity

            People

            • Assignee:
              mgrigorov Martin Tzvetanov Grigorov
              Reporter:
              ceefour Hendy Irawan
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: