myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Jacobs (JIRA)" <>
Subject [jira] [Created] (TOBAGO-1675) tc:sheet with click event and empty list throws exception
Date Mon, 09 Jan 2017 10:28:58 GMT
Ralph Jacobs created TOBAGO-1675:

             Summary: tc:sheet with click event and empty list throws exception 
                 Key: TOBAGO-1675
             Project: MyFaces Tobago
          Issue Type: Bug
          Components: Core
    Affects Versions: 3.0.0
         Environment: NLB (BaseOne 6.0.0)
            Reporter: Ralph Jacobs

tc:sheet containing 
 - tc:row containing tc:event 
 - 6 tc:column tags

When rendering with an empty list, the renderer throws the following exception:

Exception:  'Index: 6, Size: 6'
java.lang.IndexOutOfBoundsException: Index: 6, Size: 6
        at java.util.ArrayList.rangeCheck(
        at java.util.ArrayList.get(
        at org.apache.myfaces.tobago.internal.renderkit.renderer.SheetRenderer.encodeEnd(

AbstractUISheet:findColums recognizes the child tc:row as a column, since AbstractUIRow inherits
from AbstractUIColumnBase. Later, the number of columns is one greater than the number of
column widths.

  private void findColumns(final UIComponent component, final List<AbstractUIColumnBase>
result, final boolean all) {
    for (final UIComponent child : component.getChildren()) {
      if (all || child.isRendered()) {
        if (child instanceof AbstractUIColumnBase) {
          result.add((AbstractUIColumnBase) child);

This message was sent by Atlassian JIRA

View raw message