myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rogerio Pereira" <rogerio.ara...@gmail.com>
Subject Re: IndexOutOfBoundsException with custom component
Date Tue, 30 May 2006 12:15:14 GMT
Right now i'm getting many problems related to arraylist and i'm getting
similar error when using dependency injection with ArrayLists in session
scope.

2006/5/30, Ionut S <sionut2@yahoo.com>:
>
> Hi there,
> I have created a custom components that agregates 2 other components. The
> component works just fine until a submit is performed. Then I get the
> following error:
> ..............
> 14:57:10,531 WARN  [HtmlGridRendererBase] PanelGrid _id0:holder has not
> enough children. Child count should be a multiple of the columns attribute.
> 14:57:11,240 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces
> Servlet threw exception
> java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
>         at java.util.ArrayList.RangeCheck(ArrayList.java:546)
>         at java.util.ArrayList.get(ArrayList.java:321)
>         at javax.faces.component.UIComponentBase.processRestoreState(
> UIComponentBase.java:499)
>         at javax.faces.component.UIComponentBase.processRestoreState(
> UIComponentBase.java:502)
>         at javax.faces.component.UIComponentBase.processRestoreState(
> UIComponentBase.java:502)
> ...............
>
> I set ids for all the children in the custom component and also for the
> component itself. Is somebody who had this problem before ?
>
> Thank you,
> Ionut
>
> ------------------------------
> Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries<http://us.rd.yahoo.com/mail_us/taglines/postman9/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com/>for
just 2¢/min with Yahoo! Messenger with Voice.
>
>


-- 
Yours truly (Atenciosamente),

Rogério

Mime
View raw message