[richfaces-issues] [JBoss JIRA] Created: (RF-8496) rich:dataTable can not be put inside rich:dataList

Dave Chen (JIRA) jira-events at lists.jboss.org
Sat Mar 6 02:35:10 EST 2010


rich:dataTable can not be put inside rich:dataList
--------------------------------------------------

                 Key: RF-8496
                 URL: https://jira.jboss.org/jira/browse/RF-8496
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: component-tables
         Environment: RichFaces 3.3.1
            Reporter: Dave Chen


test case: dataList1.jsp

<rich:dataList value="#{backingBean.beanList}" var="bean">
			 
<h:form>

    <rich:dataTable
        var="book"
        value="#{bean.books}">
        
        <rich:columns value="#{bean.properties}" var="p">
        	<f:facet name="header">
        		<h:outputText value="#{p.name}"/>
        	</f:facet>
        	<h:outputText value="#{p.value}"/>
        </rich:columns>
		       
    </rich:dataTable>
    
</h:form>

</rich:dataList>

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.ColumnsTag.prepare(ColumnsTag.java:539)
        at org.richfaces.taglib.ColumnsTag.doStartTag(ColumnsTag.java:299)
        at org.apache.jsp.test.dataList1_jsp._jspx_meth_rich_005fcolumns_005f0(dataList1_jsp.java:338)
        at org.apache.jsp.test.dataList1_jsp._jspx_meth_rich_005fdataTable_005f0(dataList1_jsp.java:302)
        at org.apache.jsp.test.dataList1_jsp._jspx_meth_h_005fform_005f0(dataList1_jsp.java:249)
        at org.apache.jsp.test.dataList1_jsp._jspx_meth_rich_005fdataList_005f0(dataList1_jsp.java:207)
        at org.apache.jsp.test.dataList1_jsp._jspx_meth_f_005fview_005f0(dataList1_jsp.java:141)
        at org.apache.jsp.test.dataList1_jsp._jspService(dataList1_jsp.java:97)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

>From debug:  #{bean.properties}  is evaluated to be NULL.  
each bean's properties can be different, so it can not be written as #{backingBean.properties}

-- 
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