Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-9595

calendar: no converter for java.util.Date attached by default

    Details

    • Affects:
      Interactive Demo/Tutorial
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      <rich:calendar value="#

      {calendarBean.selectedDate}

      "
      locale="#

      {calendarBean.locale}

      " popup="#

      {calendarBean.popup}

      "
      datePattern="#

      {calendarBean.pattern}"
      showApplyButton="#{calendarBean.showApply}" cellWidth="24px"
      cellHeight="22px" style="width:200px">
      <f:convertDateTime pattern="#{calendarBean.pattern}

      " />
      </rich:calendar>

      Show
      <rich:calendar value="# {calendarBean.selectedDate} " locale="# {calendarBean.locale} " popup="# {calendarBean.popup} " datePattern="# {calendarBean.pattern}" showApplyButton="#{calendarBean.showApply}" cellWidth="24px" cellHeight="22px" style="width:200px"> <f:convertDateTime pattern="#{calendarBean.pattern} " /> </rich:calendar>

      Description

      <rich:calendar value="#

      {calendarBean.selectedDate}

      "
      locale="#

      {calendarBean.locale}

      "
      popup="#

      {calendarBean.popup}

      "
      datePattern="#

      {calendarBean.pattern}

      "
      showApplyButton="#

      {calendarBean.showApply}

      " cellWidth="24px" cellHeight="22px" style="width:200px"/>
      ..

      private Date selectedDate;

      ...

      Caused by: javax.faces.convert.ConverterException: No Converter for type java.util.Date found
      at org.richfaces.component.util.SelectUtils.getConverterForProperty(SelectUtils.java:300)
      at org.richfaces.renderkit.CalendarRendererBase.getInputValue(CalendarRendererBase.java:266)
      at org.richfaces.renderkit.html.CalendarRenderer.encodeEnd(CalendarRenderer.java:217)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:878)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1620)
      at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:280)
      at org.richfaces.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:84)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:287)
      at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185)
      at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613)
      at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:380)
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126)
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      ... 14 more

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  amarkhel Andrey Markhel
                  Reporter:
                  ilya_shaikovsky Ilya Shaikovsky
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: