You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Paul Spencer <pa...@apache.org> on 2006/07/10 16:10:04 UTC
Getting stack trace when using groupBy attribute in
(MyFaces 1.1.3, Tomahawk 1.1.3)
I am receiving a stack trace when coordinating the groupBy column with the
sorting column. The variable created by sortColumnVar is used to in
<t:column>'s groupBy attribute. When I click on a column header I receive a stack trace.
I have verified the variable "sortedColumn" is correctly set.
**
* From the JSP
**
<t:dataTable value="#{list.rows}" var="row"
sortedColumnVar="sortedColumn">
<t:column sortable="true" sortPropertyName="col_1"
groupBy="#{sortedColumn}">
<f:facet name="header">
<h:outputLabel value="Col 1" />
</f:facet>
<h:outputText value="#{row.col_1}" />
</t:column>
</t:dataTable>
**
* Stack trace from tomcat's log
**
ERROR - Servlet.service() for servlet jsp threw exception
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:507)
at java.util.ArrayList.get(ArrayList.java:324)
at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.renderColumnBody(HtmlTableRenderer.java:528)
at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeColumnChild(HtmlTableRendererBase.java:282)
at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeColumnChild(HtmlTableRenderer.java:496)
at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeInnerHtml(HtmlTableRendererBase.java:258)
at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:123)
at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren(HtmlTableRenderer.java:171)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:480)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:361)
at org.apache.myfaces.shared_tomahawk.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java:54)
Do I need to report this as an issue?
Paul Spencer