Re: dataList nullpointerexception

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: dataList nullpointerexception

Mikey E
I'm getting the same error while using a dataTable (with 1.0.9) ..
any ideas/workarounds?


On 4/27/05, Rob Decker <[hidden email]> 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
>
>
Reply | Threaded
Open this post in threaded view
|

Re: dataList nullpointerexception

schof-2
This sounds familiar to a recent discussion on the dev list:

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

sean

On 5/12/05, Mikey E <[hidden email]> wrote:

> I'm getting the same error while using a dataTable (with 1.0.9) ..
> any ideas/workarounds?
>
>
> On 4/27/05, Rob Decker <[hidden email]> 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
> >
> >
>