Tree: IllegalArgumentException: In AbstractTreeDataModel rowIndex must be -1
----------------------------------------------------------------------------
Key: RF-2594
URL:
http://jira.jboss.com/jira/browse/RF-2594
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: JBoss Richfaces 3.2.0.CR3
JBoss Seam 2.0.1.GA
JBoss AS 4.2.2.GA
JDK 1.5.0_11
Reporter: Rainer Flicker
Selecting a node in a richfaces tree, combined with an a4j:commandLink produces an error
message.
The specified action-method is never invoked. It works with Richfaces 3.2.0.CR1 and
3.1.4.GA.
------ xhtml snippet
---------------------------------------------------------------------------------------------------
<rich:tree ajaxSubmitSelection="true" switchType="ajax"
value="#{processTreeModel}" var="pro">
<rich:treeNode>
<a4j:commandLink
value="#{pro.getProcessNumber()} #{pro.getName()}"
action="#{tree.nodeSelected(pro)}" bypassUpdates="true"
ajaxSingle="true">
</a4j:commandLink>
</rich:treeNode>
</rich:tree>
------------------------------------------------------------------------------------------------------------------------------
-------- error output from JBoss AS log
--------------------------------------------------------------------------
[javax.enterprise.resource.webcontainer.jsf.lifecycle] java.lang.IllegalArgumentException:
In AbstractTreeDataModel rowIndex must be -1.
javax.faces.FacesException: java.lang.IllegalArgumentException: In AbstractTreeDataModel
rowIndex must be -1.
at javax.faces.component.UIData.invokeOnComponent(UIData.java:793)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:236)
at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:397)
at
com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:143)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:276)
at org.ajax4jsf.Filter.doFilter(Filter.java:165)
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalArgumentException: In AbstractTreeDataModel rowIndex must be
-1.
at org.richfaces.model.AbstractTreeDataModel.setRowIndex(AbstractTreeDataModel.java:50)
at org.ajax4jsf.component.UIDataAdaptor.setRowIndex(UIDataAdaptor.java:302)
at javax.faces.component.UIData.invokeOnComponent(UIData.java:779)
... 45 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira