Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-7524

rich:columns throws Exception when value is null

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.3.1, 3.3.2.SR1
    • Fix Version/s: None
    • Component/s: component-tables
    • Labels:
      None
    • Environment:

      Windows Vista, Java 6, JBoss 4.2.2.GA, JBoss Seam 2.1.1.GA

      Description

      Since Richfaces Version 3.3.1.GA an exception is thrown, when value of rich:columns is null.

      For example:
      <rich:columns value="#

      {someList[0].years}

      " var="year" index="index" rendered="#

      {not empty someList[0].years}

      ">...</rich:columns>

      throws:
      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.ColumnsHandler.prepare(ColumnsHandler.java:304)
      at org.richfaces.taglib.ColumnsHandler.apply(ColumnsHandler.java:489)
      at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      ....
      because supportedTypeForEachIterator(Object o) in SimpleForEachIterator is called with null.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mmerder Markus Merder
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: