1 Reply Latest reply on Jul 10, 2011 6:03 PM by Nick Belaevski

    rich:columns javax.servlet.jsp.JspTagException: FOREACH_BAD_ITEMS

    Bruce Randall Newbie

      I have Googled this and found post that are older then the richfaces 3.3.3 final we are using. I am wondering if this was ever fixed.

       

      javax.servlet.jsp.JspTagException: FOREACH_BAD_ITEMS

              at org.richfaces.iterator.SimpleForEachIterator.toForEachIterator(SimpleForEachIterator.java:135)

              at org.richfaces.iterator.SimpleForEachIterator.supportedTypeForEachIterator(SimpleForEachIterator.java:98)

              at org.richfaces.taglib.ColumnsHandlerIterationContext.setValue(ColumnsHandlerIterationContext.java:233)

              at org.richfaces.taglib.ColumnsHandler.prepare(ColumnsHandler.java:163)

              at org.richfaces.taglib.ColumnsHandler.apply(ColumnsHandler.java:186)

              at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

              at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)

       

       

       

       

                      <rich:dataTable id="rsltTable"
                                      binding="#{ChannelStatusManagedBean.resultTable}"
                                      value="#{ChannelStatusManagedBean.summaryList}"
                                      var="rslt" rows="20" width="1080"
                                      columnClasses="columnLeftAlign"
                                      headerClass="headerLeftAlignBlack"
                                      rowClasses="toTrunk,fromTrunk">
                      <rich:column>

       

                          <h:selectBooleanCheckbox id="utCb" title="Select Users"  value="#{rslt.selected}"/>
                          <a4j:commandButton title="View details for selected circuits" value="Details"
                                             immediate="false" image="/images/magnifyGlass.png"
                                             action="#{ChannelStatusManagedBean.viewDetails}"
                                             onclick="Richfaces.showModalPanel('progressModalPanel');"
                                             oncomplete="Richfaces.hideModalPanel('progressModalPanel');"
                                             reRender="csaPg">
                          </a4j:commandButton>
                      </rich:column>
                      <rich:columns value="#{rslt.columns}" var="col" index="ndx">
                          <f:facet name="header">
                              <h:outputLabel value="#{col.columnName}" title="#{col.columnTitle}"/>
                          </f:facet>
                          <h:outputLabel value="#{rslt.columnValues[ndx]}"/>
                      </rich:columns>
                  </rich:dataTable>

       

       

      ChannelStatusManagedBean.summaryList = List<Summary>

      Summary contains:

      List<DataColumn> columns

      List<String> columnValues