This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSF and the fly likes custom component: ArrayIndexOutOfBoundsException when changing from one tab to other  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "custom component: ArrayIndexOutOfBoundsException when changing from one tab to other  " Watch "custom component: ArrayIndexOutOfBoundsException when changing from one tab to other  " New topic
Author

custom component: ArrayIndexOutOfBoundsException when changing from one tab to other

Rani Subramani
Greenhorn

Joined: Jan 16, 2009
Posts: 7
Hi all,

I am creating a custom component by extending rich:tabPanel

when i try to click from one tab to the other i get this exception

javax.servlet.ServletException: 3
javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)


root cause

java.lang.ArrayIndexOutOfBoundsException: 3
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1159)
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1163)
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1163)
org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:236)
com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:316)
org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:116)
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:176)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:104)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)

can anybody tell ahat needs to be done...

Thanks
Rani

 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: custom component: ArrayIndexOutOfBoundsException when changing from one tab to other
 
It's not a secret anymore!