You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Rob Decker <ro...@objectsource.org> on 2005/04/27 17:45:35 UTC

dataList nullpointerexception

Do I have to keep state for the dataList? Is there a requirement that my data is saved 
in session when I use the dataList? I don't understand why it's trying to restore the 
state of descendent components. Why doesn't doesn't it just loop through list and lay 
them out again?


java.lang.NullPointerException
	at javax.faces.component.UIData.restoreDescendantComponentStates
(UIData.java:432)
	at javax.faces.component.UIData.restoreDescendantComponentStates
(UIData.java:436)
	at javax.faces.component.UIData.restoreDescendantComponentStates
(UIData.java:436)
	at javax.faces.component.UIData.setRowIndex(UIData.java:191)
	at org.apache.myfaces.custom.datalist.HtmlDataList.setRowIndex
(HtmlDataList.java:69)
	at org.apache.myfaces.custom.datalist.HtmlListRenderer.encodeChildren
(HtmlListRenderer.java:137)
	at javax.faces.component.UIComponentBase.encodeChildren
(UIComponentBase.java:329)
	at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:380)
	at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:288)
	at org.apache.myfaces.taglib.UIComponentBodyTagBase.doEndTag
(UIComponentBodyTagBase.java:98)
	at org.apache.jsp.inc.scroller_jsp._jspx_meth_x_dataList_1
(scroller_jsp.java:1606)

--
Rob

@objectsource.org


Re: dataList nullpointerexception

Posted by Sean Schofield <se...@gmail.com>.
This sounds familiar to a recent discussion on the dev list:

http://www.mail-archive.com/dev@myfaces.apache.org/msg01912.html

sean

On 5/12/05, Mikey E <mi...@gmail.com> wrote:
> I'm getting the same error while using a dataTable (with 1.0.9) ..
> any ideas/workarounds?
> 
> 
> On 4/27/05, Rob Decker <ro...@objectsource.org> wrote:
> > Do I have to keep state for the dataList? Is there a requirement that my data is saved
> > in session when I use the dataList? I don't understand why it's trying to restore the
> > state of descendent components. Why doesn't doesn't it just loop through list and lay
> > them out again?
> >
> > java.lang.NullPointerException
> >        at javax.faces.component.UIData.restoreDescendantComponentStates
> > (UIData.java:432)
> >        at javax.faces.component.UIData.restoreDescendantComponentStates
> > (UIData.java:436)
> >        at javax.faces.component.UIData.restoreDescendantComponentStates
> > (UIData.java:436)
> >        at javax.faces.component.UIData.setRowIndex(UIData.java:191)
> >        at org.apache.myfaces.custom.datalist.HtmlDataList.setRowIndex
> > (HtmlDataList.java:69)
> >        at org.apache.myfaces.custom.datalist.HtmlListRenderer.encodeChildren
> > (HtmlListRenderer.java:137)
> >        at javax.faces.component.UIComponentBase.encodeChildren
> > (UIComponentBase.java:329)
> >        at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:380)
> >        at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:288)
> >        at org.apache.myfaces.taglib.UIComponentBodyTagBase.doEndTag
> > (UIComponentBodyTagBase.java:98)
> >        at org.apache.jsp.inc.scroller_jsp._jspx_meth_x_dataList_1
> > (scroller_jsp.java:1606)
> >
> > --
> > Rob
> >
> > @objectsource.org
> >
> >
>

Re: dataList nullpointerexception

Posted by Mikey E <mi...@gmail.com>.
I'm getting the same error while using a dataTable (with 1.0.9) ..
any ideas/workarounds?


On 4/27/05, Rob Decker <ro...@objectsource.org> wrote:
> Do I have to keep state for the dataList? Is there a requirement that my data is saved
> in session when I use the dataList? I don't understand why it's trying to restore the
> state of descendent components. Why doesn't doesn't it just loop through list and lay
> them out again?
> 
> java.lang.NullPointerException
>        at javax.faces.component.UIData.restoreDescendantComponentStates
> (UIData.java:432)
>        at javax.faces.component.UIData.restoreDescendantComponentStates
> (UIData.java:436)
>        at javax.faces.component.UIData.restoreDescendantComponentStates
> (UIData.java:436)
>        at javax.faces.component.UIData.setRowIndex(UIData.java:191)
>        at org.apache.myfaces.custom.datalist.HtmlDataList.setRowIndex
> (HtmlDataList.java:69)
>        at org.apache.myfaces.custom.datalist.HtmlListRenderer.encodeChildren
> (HtmlListRenderer.java:137)
>        at javax.faces.component.UIComponentBase.encodeChildren
> (UIComponentBase.java:329)
>        at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:380)
>        at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:288)
>        at org.apache.myfaces.taglib.UIComponentBodyTagBase.doEndTag
> (UIComponentBodyTagBase.java:98)
>        at org.apache.jsp.inc.scroller_jsp._jspx_meth_x_dataList_1
> (scroller_jsp.java:1606)
> 
> --
> Rob
> 
> @objectsource.org
> 
>