[richfaces-issues] [JBoss JIRA] Commented: (RF-7524) rich:columns throws Exception when value is null

Leonid Sokolin (JIRA) jira-events at lists.jboss.org
Mon Aug 3 18:41:29 EDT 2009


    [ https://jira.jboss.org/jira/browse/RF-7524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12478700#action_12478700 ] 

Leonid Sokolin commented on RF-7524:
------------------------------------

What could be done, if the value is null, when the table is shown the first time?

It would be populated only after user clicks the button to get some data.

> rich:columns throws Exception when value is null
> ------------------------------------------------
>
>                 Key: RF-7524
>                 URL: https://jira.jboss.org/jira/browse/RF-7524
>             Project: RichFaces
>          Issue Type: Bug
>          Components: component-tables
>    Affects Versions: 3.3.1
>         Environment: Windows Vista, Java 6, JBoss 4.2.2.GA, JBoss Seam 2.1.1.GA
>            Reporter: Markus Merder
>            Assignee: Nick Belaevski
>            Priority: Trivial
>             Fix For: Future
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list