[ 
https://jira.jboss.org/jira/browse/RF-8469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Leonid Sokolin updated RF-8469:
-------------------------------

    Attachment: piQueryToolOutputPR.xhtml


Nick,

Please see attached the file I use. I also attached the section from 
faces-config.xml, which is supporting this page.

<managed-bean>
                <managed-bean-name>piQueryToolOutputBeanPR</managed-bean-name>
                <managed-bean-class>
                        com.nb.pi.processor.beans.QueryToolOutputBean
                </managed-bean-class>
                <managed-bean-scope>request</managed-bean-scope>
                <managed-property>
                        <property-name>statOutDataV</property-name>
                        <value>#{piPerformanceReturnsBean.allRetData}</value>
                </managed-property>
                <managed-property>
                        <property-name>outputIndex</property-name>
                        <value>#{param.index}</value>
                </managed-property>
        </managed-bean>

I would be curious to have your feedback.

We need to decide whether we could use rich:dataTable to do the sorting 
(preferred solution) or I should look for the alternative.

> Sorting of rich:dataTable is still not working in 3.3.2.CR1 
> ------------------------------------------------------------
>
>                 Key: RF-8469
>                 URL: https://jira.jboss.org/jira/browse/RF-8469
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 3.3.2.CR1
>         Environment: Windows, JBoss 4.2.2.GA
>            Reporter: Leonid Sokolin
>            Assignee: Nick Belaevski
>         Attachments: piQueryToolOutputPR.xhtml
>
>
> Sorting doesn't work on the value, which is shown correctly in the column.
> I could see values and sorting arrows in the header, but when I click on 
> them, it throws exeception:
>   
> 21:15:38,875 ERROR [ColumnsHandler] FOREACH_BAD_ITEMS
> 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)
>       at 
> com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
>       at 
> com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
> ...
> Code is as follows:
> <rich:column id="portBenchName" 
> sortBy="#{piQueryToolOutputBeanPR.statOutData.prodBenchNames[rKV]}">
>                                       <f:facet name="header">
>                                       </f:facet>
>                     <h:outputText 
> value="#{piQueryToolOutputBeanPR.statOutData.prodBenchNames[rKV]}"/>
>                               </rich:column>
> It looks like it couldn't use the value that I put in sortBy.
> Please advise.
> Leonid

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

        
_______________________________________________
richfaces-issues mailing list
richfaces-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to