[richfaces-issues] [JBoss JIRA] Commented: (RF-4546) Rich data grid produces unneeded cells.
Nick Belaevski (JIRA)
jira-events at lists.jboss.org
Fri Feb 20 18:58:44 EST 2009
[ https://jira.jboss.org/jira/browse/RF-4546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12453631#action_12453631 ]
Nick Belaevski commented on RF-4546:
------------------------------------
Workaround:
<rich:dataGrid var="item" columns="#{fn:length(forum5Bean.data) ge 2 ? 2 : fn:length(forum5Bean.data)}" value="#{forum5Bean.data}">
#{item}
</rich:dataGrid>
where 2 is the desired columns number.
> Rich data grid produces unneeded cells.
> ---------------------------------------
>
> Key: RF-4546
> URL: https://jira.jboss.org/jira/browse/RF-4546
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.2.1
> Reporter: Sergey Halipov
> Assignee: Nick Belaevski
> Priority: Minor
> Fix For: Future
>
> Attachments: dataGrid.png
>
>
> <rich:dataGrid
> value="#{hotelFullInfo.info.images}" var="image" columns="10"
> border="0" style="border:0px; background-color: #f3f2f2;"
> columnClasses="noborder">
> <h:graphicImage value="#{image.thumbnail.url}"
> alt="#{fn:localize(image.large.imageTitle)}" width="64" >
> <a4j:support event="onclick"
> actionListener="#{hotelFullInfo.changeImage}"
> reRender="mainImage">
> <f:attribute name="image" value="#{image.large}" />
> </a4j:support>
> </h:graphicImage>
> </rich:dataGrid>
> If value colection contains less elements than declared in 'columns' attribute unneeded emply cells are produced. See screen shot for more details.
--
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
More information about the richfaces-issues
mailing list