Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DataTable and dynamic row rendering

808082Oct 25 2010 — edited Oct 28 2010
Hello,
I want ask, how can I render datatable rows in JSF page dynamic. I need to render rows only when category.visible is true. When I put condition in commandLink, I have unwanted spaces between rows. Can anyone help my?

Thank you.

<h:dataTable id="categoryList" value="#{categories.categoriesbyOrder}" var="category" styleClass="categoryTable" rendered="#{documents.clicked}">
<h:column>
<h:commandLink actionListener="#{documents.listOfFiles}" ondblclick="return false;" styleClass="mediumText"
render="#{category.vidible}">
<h:graphicImage value="../images/erbSM.jpg" styleClass="noBorder" />
<f:param name="action" value="fileList"/>
<f:param name="categoryID" value="#{category.id}"/>
<h:outputText value=" #{category.name} [#{category.docsCount}]" styleClass="mediumText"/>
</h:commandLink>
</h:column>
</h:dataTable>
This post has been answered by gimbal2 on Oct 28 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 17 2023
Added on Oct 25 2010
5 comments
1,816 views