This content has been marked as final.
Show 5 replies
-
1. Re: Sorting with RichFaces 3.1.6
ilya_shaikovsky Aug 6, 2009 3:15 AM (in response to pirate_ilian)default sorting(defined by using just sortMode) designed to works only if the column id matches the object property which should be used while sorting (see richfaces-demo). In other case - use sortExpression column attribute.
And b.t.w. do you have form around the table? -
2. Re: Sorting with RichFaces 3.1.6
pirate_ilian Aug 6, 2009 3:59 AM (in response to pirate_ilian)OK, but I'm using column id the same as the property :
<rich:column id="persnr" > <f:facet name="header"> <h:outputText value="#{msgs['label.partnerNumber']}" /> </f:facet> <h:outputText value="#{personItem.persnr}" /> </rich:column>
and also the code was not in form and when I put it between <h:form id="frm"> I got the following Javascript error : Error: this._form has no properties -
3. Re: Sorting with RichFaces 3.1.6
ilya_shaikovsky Aug 6, 2009 4:34 AM (in response to pirate_ilian)could you please just check fully the same code under jsf 1.2 and rf 3.3.1? just to check.
-
4. Re: Sorting with RichFaces 3.1.6
pirate_ilian Aug 6, 2009 7:22 AM (in response to pirate_ilian)I've checked current online demo :
http://livedemo.exadel.com/richfaces-demo/richfaces/scrollableDataTable.jsf
but I don't see the difference.
Can you tell me what I'm missing.
Thanks -
5. Re: Sorting with RichFaces 3.1.6
ilya_shaikovsky Aug 6, 2009 9:50 AM (in response to pirate_ilian)code seems ok.. please try to define sortExpression directly instead of using id approach.