Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-916

jslistener.jsf example no longer works

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.1.3, 1.1.4-SNAPSHOT, 1.1.5-SNAPSHOT
    • 1.1.5
    • None

    Description

      The jslistener.jsf example no longer works. Not sure when it broke.

      http://www.irian.at/myfaces/jslistener.jsf

      http://example.irian.at/example-simple-20070303/jslistener.jsf

      MyFaces encountered an error.
      Message: Value binding '#

      {jsListenerModel.optionItems}'of UISelectItems with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /jslistener.jsp][Class: javax.faces.component.html.HtmlForm,Id: _idJsp0][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp1][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: selone_menu_options][Class: javax.faces.component.UISelectItems,Id: _idJsp13]} does not reference an Object of type SelectItem, SelectItem[], Collection or Map but of type : null

      java.lang.IllegalArgumentException: Value binding '#{jsListenerModel.optionItems}

      'of UISelectItems with component-path

      {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /jslistener.jsp][Class: javax.faces.component.html.HtmlForm,Id: _idJsp0][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp1][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: selone_menu_options][Class: javax.faces.component.UISelectItems,Id: _idJsp13]}

      does not reference an Object of type SelectItem, SelectItem[], Collection or Map but of type : null
      at org.apache.myfaces.shared_impl.util.SelectItemsIterator.hasNext(SelectItemsIterator.java:144)
      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.internalGetSelectItemList(RendererUtils.java:439)
      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getSelectItemList(RendererUtils.java:417)
      at org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.internalRenderSelect(HtmlRendererUtils.java:294)
      at org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.renderMenu(HtmlRendererUtils.java:267)
      at org.apache.myfaces.shared_impl.renderkit.html.HtmlMenuRendererBase.encodeEnd(HtmlMenuRendererBase.java:59)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:408)
      at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:229)
      at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:101)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
      at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:498)
      at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:366)
      at org.apache.myfaces.shared_impl.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java:57)
      at org.apache.jsp.jslistener_jsp._jspx_meth_h_panelGrid_0(jslistener_jsp.java:335)
      at org.apache.jsp.jslistener_jsp._jspx_meth_h_form_0(jslistener_jsp.java:255)
      at org.apache.jsp.jslistener_jsp._jspx_meth_f_view_0(jslistener_jsp.java:200)
      at org.apache.jsp.jslistener_jsp._jspService(jslistener_jsp.java:145)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
      at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)
      at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:141)

      javax.servlet.ServletException: Value binding '#

      {jsListenerModel.optionItems}

      'of UISelectItems with component-path

      {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /jslistener.jsp][Class: javax.faces.component.html.HtmlForm,Id: _idJsp0][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp1][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: selone_menu_options][Class: javax.faces.component.UISelectItems,Id: _idJsp13]}

      does not reference an Object of type SelectItem, SelectItem[], Collection or Map but of type : null
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:155)

      Attachments

        Activity

          People

            cagatay_civici Cagatay Civici
            mkienenb Mike Kienenberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: