[
https://jira.jboss.org/jira/browse/RF-8469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12518712#action_12518712
]
Leonid Sokolin commented on RF-8469:
------------------------------------
We want to use vector here, because the output should come out in the same
order as specified by users in the input request. I don't think, it is
worthwhile to make changes in application logic to accommodate the problem with
sorting.
As for request scope, I suspected that it might be the case as well, but not
sure then why export to Excel and PDF functions in the same page work fine.
They also rely on the availability of the same data:
<a4j:commandLink id="expExcel"
action="#{piQueryToolOutputBeanPR.statOutData.genWorkBook}" immediate="false"
oncomplete="doDownload('file/abcd?filename=PerformanceReturns_' +
#{piQueryToolOutputBeanPR.statOutData.randNum} + '.xls')">
<h:graphicImage
value="images/Excel-16.gif" style="border:0"/>
</a4j:commandLink>
Are you saying that while bean data maybe available, page data no longer is, if
the scope is "request only"? This is unfortunate.
BTW, I was trying to imitate the logic you provide in the demo example, but it
has no mentioning of request scope limitation.
<rich:column sortBy="#{cap.state}">
<f:facet name="header">
<h:outputText value="State Name"/>
</f:facet>
<h:outputText value="#{cap.state}"/>
</rich:column>
Do you think it is a fundamental problem that couldn't be addressed? In this
case, we definitely couldn't use table sorting after this page has been
generated.
Still, please let me know after the fix is applied to 3.3.2.SR1 and I will try
to test it.
> Sorting of rich:dataTable is still not working in 3.3.2.SR1
> ------------------------------------------------------------
>
> 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.SR1
> Environment: Windows, JBoss 4.2.2.GA
> Reporter: Leonid Sokolin
> Assignee: Nick Belaevski
> Attachments: piQueryToolOutputPR.xhtml, piQueryToolOutputPR.xhtml,
> QueryToolOutputBean.java, StatisticsOutputData.java, StatisticsValues.java
>
>
> 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
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues