This content has been marked as final.
Show 4 replies
-
1. Re: Is this a bug? rich:dataList's elements property can not
ybxiang.wolf Apr 22, 2008 12:33 AM (in response to ybxiang.wolf)Now, i will explain my code:
I have 10 records in #{queriedObjects4LatestProductSearchingAction.rowCount}
I want to show 6 records in tabPanel's first Tab.
But those codes show all 10 records in the first tab!!!
If i set rich:dataList's elements to 6 instead of #{elements}, it works well!!!
Why? Is this a bug? I have tried "richfaces-3.1.4.GA" and "richfaces-3.2.0.SR1" and got the same result.
Why i can not pass the parameter 'elements' to rich:dataList ???
Any tips will be appreciated. -
2. Re: Is this a bug? rich:dataList's elements property can not
ybxiang.wolf Apr 22, 2008 1:10 AM (in response to ybxiang.wolf)<h:form> <!-- parameter[elements] does not work --> <rich:dataGrid value="#{value}" var="hot" columns="#{4}" elements="#{3}" first="#{first}" cellpadding="0" cellspacing="0" border="0" width="100%" stateVar="stateVar" columnClasses="#{columnClasses}" > <h:outputLink target="_blank" value="/pages/erp/product/product.detail.#{globalConstants.urlPattern}?productId=#{hot.id}&randomCode=#{hot.randomCode}"> <s:graphicImage value="#{hot.image.dataOfThumbnail}" style="border: 0px solid black;" rendered="#{hot.image!=null and hot.image.dataOfThumbnail!=null}"> </s:graphicImage> ....
Now, i put numbers in EL directly, "columns" property works well, but "elements" property still does not work(all elements are showed). -
4. Re: Is this a bug? rich:dataList's elements property can not
ybxiang.wolf Apr 23, 2008 1:18 AM (in response to ybxiang.wolf)"ilya_shaikovsky" wrote:
http://jira.jboss.com/jira/browse/RF-3170
It is really a bug.
Nice to see it's in JIRA so quickly.
;)