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

Showcase: select sample is not working [myfaces]

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.5.0.Beta1
    • Fix Version/s: 4.5.0.Beta2
    • Component/s: showcase
    • Labels:
    • Environment:

      Showcase with MyFaces (default version) on Tomcat 7.0.55

      Description

      The select sample is not rendered correctly (see the screenshot).

      Works in Showcase with Mojarra.

      There is an error on the server side

      SEVERE: Servlet.service() for servlet [Faces Servlet] in context with path [/showcase] threw exception [list] with root cause
      java.lang.NullPointerException: list
      	at javax.faces.model.ListDataModel.<init>(ListDataModel.java:46)
      	at org.richfaces.component.AbstractAutocomplete.getItems(AbstractAutocomplete.java:327)
      	at org.richfaces.component.AbstractSelect.getItemValues(AbstractSelect.java:75)
      	at org.richfaces.component.util.SelectUtils$SelectItemsIterator.createUISelectItemsInterfaceIterator(SelectUtils.java:232)
      	at org.richfaces.component.util.SelectUtils$SelectItemsIterator.createIterator(SelectUtils.java:246)
      	at org.richfaces.component.util.SelectUtils$SelectItemsIterator.computeNext(SelectUtils.java:168)
      	at org.richfaces.component.util.SelectUtils$SelectItemsIterator.computeNext(SelectUtils.java:145)
      	at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
      	at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
      	at org.richfaces.renderkit.SelectHelper.getConvertedSelectItems(SelectHelper.java:72)
      	at org.richfaces.renderkit.SelectRendererBase.getConvertedSelectItems(SelectRendererBase.java:138)
      	at org.richfaces.renderkit.html.SelectRenderer.doEncodeEnd(SelectRenderer.java:182)
      	at org.richfaces.renderkit.RendererBase.encodeEnd(RendererBase.java:180)
      	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:665)
      	at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:545)
      	at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:282)
      	at org.richfaces.renderkit.html.PanelRenderer.doEncodeEnd(PanelRenderer.java:183)
      	at org.richfaces.renderkit.RendererBase.encodeEnd(RendererBase.java:180)
      	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:665)
      	at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:545)
      	at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541)
      	at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541)
      	at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541)
      	at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1981)
      	at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:285)
      	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
      	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
      	at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116)
      	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241)
      	at org.richfaces.demo.arrangeablemodel.PersistenceLifecycle.render(PersistenceLifecycle.java:66)
      	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:199)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.richfaces.webapp.PushFilter.doFilter(PushFilter.java:96)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.ocpsoft.rewrite.servlet.RewriteFilter.doFilter(RewriteFilter.java:172)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
      	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:745)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bleathem Brian Leathem
                Reporter:
                jstefek Jiří Štefek
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified