[
https://issues.apache.org/jira/browse/TOBAGO-1675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15817734#comment-15817734
]
Henning Noeth commented on TOBAGO-1675:
---------------------------------------
As a workaround put the <tc:row> tag to the end of <tc:sheet>.
Otherwise use Tobago v3.0.1
> tc:sheet with click event and empty list throws exception
> ----------------------------------------------------------
>
> Key: TOBAGO-1675
> URL: https://issues.apache.org/jira/browse/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(ArrayList.java:604)
> at java.util.ArrayList.get(ArrayList.java:382)
> at
> org.apache.myfaces.tobago.internal.renderkit.renderer.SheetRenderer.encodeEnd(SheetRenderer.java:484)
> Cause:
> 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
(v6.3.4#6332)