You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org> on 2007/03/04 03:59:50 UTC

[jira] Created: (TOMAHAWK-916) jslistener.jsf example no longer works

jslistener.jsf example no longer works
--------------------------------------

                 Key: TOMAHAWK-916
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-916
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: JsValueChangeListener 
    Affects Versions: 1.1.3, 1.1.4-SNAPSHOT, 1.1.5-SNAPSHOT
            Reporter: Mike Kienenberger
            Priority: Critical


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)


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


[jira] Resolved: (TOMAHAWK-916) jslistener.jsf example no longer works

Posted by "Cagatay Civici (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TOMAHAWK-916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cagatay Civici resolved TOMAHAWK-916.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1.5-SNAPSHOT

> jslistener.jsf example no longer works
> --------------------------------------
>
>                 Key: TOMAHAWK-916
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-916
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: JsValueChangeListener 
>    Affects Versions: 1.1.3, 1.1.4-SNAPSHOT, 1.1.5-SNAPSHOT
>            Reporter: Mike Kienenberger
>         Assigned To: Cagatay Civici
>            Priority: Critical
>             Fix For: 1.1.5-SNAPSHOT
>
>
> 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)

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


[jira] Commented: (TOMAHAWK-916) jslistener.jsf example no longer works

Posted by "Zdenek Sochor (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOMAHAWK-916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480019 ] 

Zdenek Sochor commented on TOMAHAWK-916:
----------------------------------------

Hi,
  problem with example is in not initializing optionItems at all.

To fix example either initialize list in getter for optionItems OR invoke getter for options prior to invoking getter for optionItems.
(List of optionItems is initialized in getOptions())

Zdenek

> jslistener.jsf example no longer works
> --------------------------------------
>
>                 Key: TOMAHAWK-916
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-916
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: JsValueChangeListener 
>    Affects Versions: 1.1.3, 1.1.4-SNAPSHOT, 1.1.5-SNAPSHOT
>            Reporter: Mike Kienenberger
>            Priority: Critical
>
> 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)

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