myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zpeedy (JIRA)" <>
Subject [jira] Created: (MYFACES-225) dataTable ArrayIndexOutOfBoundsException with input fields
Date Mon, 02 May 2005 08:30:21 GMT
dataTable ArrayIndexOutOfBoundsException with input fields

         Key: MYFACES-225
     Project: MyFaces
        Type: Bug
 Environment: MyFaces-extentions 1.09, JSF RI 1.1_01, Tomcat 5.5.7, J2SDK 1.4.2_08
    Reporter: zpeedy

When I submit the form I get an ArrayIndexOutOfBoundsException. My guess the problem is that
the <x:inputText id="someInputText" required="true"/> doesn't render an unique Id.

== dataTable.jsp ==

<%@ taglib uri="" prefix="h"%>
<%@ taglib uri="" prefix="f"%>
<%@ taglib uri="" prefix="x"%>

  <h:form id="someForm">
    <x:dataTable id="someTable" var="item" value="#{applicationBean.someItems}">
        <h:outputText id="someOutputText" value="#{item}" />
        <x:inputText id="someInputText" required="true"/>
        <h:message for="someInputText" />
    <h:commandButton value="submit" action="#"/>

== ==

public List getSomeItems()
    ArrayList list = new ArrayList(3);
    return list;

== Exception stracktrace ==

java.lang.ArrayIndexOutOfBoundsException: 4
	at org.apache.myfaces.component.html.ext.HtmlDataTableHack.refreshDescendantDataStates(
	at org.apache.myfaces.component.html.ext.HtmlDataTableHack.saveDescendantComponentStates(
	at org.apache.myfaces.component.html.ext.HtmlDataTableHack.setRowIndex(
	at org.apache.myfaces.component.html.ext.HtmlDataTable.setRowIndex(
	at javax.faces.component.UIData.iterate(
	at javax.faces.component.UIData.processDecodes(
	at org.apache.myfaces.component.html.ext.HtmlDataTable.processDecodes(
	at javax.faces.component.UIForm.processDecodes(
	at javax.faces.component.UIComponentBase.processDecodes(
	at javax.faces.component.UIViewRoot.processDecodes(

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message