-
1. Re: filterBy not working with facelets ui:param (but sortBy
keithkile Mar 9, 2009 2:40 PM (in response to keithkile)After some experimentation, I also reproduced the problem with the following xml:
<rich:extendedDataTable value="#{someDataModel}" var="record"> <ui:param name="x" value="#{record.name}"/> <rich:column id="namecol" filterBy="#{x}" sortBy="#{x}" ...> ... </rich:column> <ui:param name="x" value="#{record.street}"/> <rich:column id="streetcol" filterBy="#{x}" sortBy="#{x}" ...> ... </rich:column> </rich:extendedDataTable>
My intuition tells me that I dont yet fully understand the way EL expressions are evaluated at the time when facelets is building the component tree and the time the rich extendedDataTable is being rendered. The fact that sortBy seems to be working fine and filterBy seem conflicting to me, which is why I think this is more of a RichFaces problem than a facelets issue. Maybe somebody with some inside knowledge about sortBy and filterBy can point out why they work differently in this case...
Thanks again.
Keith K. -
2. Re: filterBy not working with facelets ui:param (but sortBy
ashutoshdeora Mar 10, 2009 3:38 AM (in response to keithkile)in the following data table sortBy is not working can u tell me what is the error
i am using richfaces 3.3.0
<rich:dataTable value="#{listData}" var="list" border="2" rendered="true" >
<rich:column sortBy="#{list.trainName}" sortOrder="ASCENDING" sortable="true" selfSorted="true">
<f:facet name="header">
<h:outputText value="carame" />
</f:facet>
<h:outputText value="#{list.trainName}" />
</rich:column>
<rich:column sortBy="#{list.sourceName}" sortable="true" selfSorted="true">
<f:facet name="header">
<h:outputText value="Source Name" />
</f:facet>
<h:outputText value="#{list.sourceName}" />
</rich:column>
<rich:column sortBy="#{list.destinationName}" sortable="true" selfSorted="true">
<f:facet name="header">
<h:outputText value="Destination Name" />
</f:facet>
<h:outputText value="#{list.destinationName}" />
</rich:column>
</rich:dataTable> -
3. Re: filterBy not working with facelets ui:param (but sortBy
keithkile Mar 10, 2009 10:14 AM (in response to keithkile)"ashutoshdeora" wrote:
in the following data table sortBy is not working can u tell me what is the error
i am using richfaces 3.3.0
<rich:dataTable value="#{listData}" var="list" border="2" rendered="true" >
<rich:column sortBy="#{list.trainName}" sortOrder="ASCENDING" sortable="true" selfSorted="true">
<f:facet name="header">
<h:outputText value="carame" />
</f:facet>
<h:outputText value="#{list.trainName}" />
</rich:column>
<rich:column sortBy="#{list.sourceName}" sortable="true" selfSorted="true">
<f:facet name="header">
<h:outputText value="Source Name" />
</f:facet>
<h:outputText value="#{list.sourceName}" />
</rich:column>
<rich:column sortBy="#{list.destinationName}" sortable="true" selfSorted="true">
<f:facet name="header">
<h:outputText value="Destination Name" />
</f:facet>
<h:outputText value="#{list.destinationName}" />
</rich:column>
</rich:dataTable>
I am currently using sortBy without using any of the sortable, sortOrder and selfSorted attributes. Try removing all but sortBy to see if it works then add the others in incrementally until it stops working.
I don't think this has anything to do with my original question though and should probably be moved over to its own posting.
Keith