[richfaces-issues] [JBoss JIRA] Commented: (RF-7879) Development: columns with selects/checkboxes
Ian Springer (JIRA)
jira-events at lists.jboss.org
Mon Jan 18 12:56:48 EST 2010
[ https://jira.jboss.org/jira/browse/RF-7879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12506701#action_12506701 ]
Ian Springer commented on RF-7879:
----------------------------------
We'd very much like to have this for the RHQ project. We currently use a custom component whose usage is show below, but we'd much prefer using something built-in to RichFaces. Note the onc:allSelect and onc:select componets, which are both used inside the header facet, and the onc:selectCommandButton component, which is used in the footer facet. The onc:selectAll and onc:selectCommandButton both associate themselves with the onc:select component via a target attribute.
<rich:dataTable id="childResourcesDataTable"
rows="#{PageControl.ChildResourcesList.pageSize}"
value="#{childResourcesDataModel}"
rendered="#{ListChildResourcesUIBean.dataModel.rowCount > 0}"
var="resourceComposite"
styleClass="resources-table"
columnClasses="resource-checkbox, resource-quicknav-cell, resource-name-cell, resource-category-cell, resource-type-cell, resource-plugin-cell, resource-description-cell, resource-availability-cell"
columnsWidth="1%,1%"
headerClass="tableRowHeader"
footerClass="on-pager-footer"
onRowMouseOver="this.style.backgroundColor='#E7E7E7'"
onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'">
<rich:column>
<f:facet name="header">
<onc:allSelect target="selectedResources"/>
</f:facet>
<onc:select name="selectedResources" value="#{resourceComposite.resource.id}"
rendered="#{resourceComposite.resource.resourceType.deletable}"/>
</rich:column>
<!-- ** The rest of the columns go here.-->
<f:facet name="footer">
<rich:columnGroup>
<rich:column colspan="8">
<onc:selectCommandButton action="#{DeleteResourcesUIBean.deleteSelectedResources}"
value="DELETE" target="selectedResources"
onclick="if (!confirm('#{msg['resource.inventory.view.deleteResourceConfirm']}')) return false"
styleClass="on-pager-button buttonsmall" />
<ui:include src="../include/pagination.xhtml">
<ui:param name="paginationDataTableName" value="childResourcesDataTable"/>
<ui:param name="paginationDataModel" value="#{childResourcesDataModel}"/>
<ui:param name="paginationPageControl" value="#{PageControl.ChildResourcesList}"/>
</ui:include>
</rich:column>
</rich:columnGroup>
</f:facet>
</rich:dataTable>
> Development: columns with selects/checkboxes
> --------------------------------------------
>
> Key: RF-7879
> URL: https://jira.jboss.org/jira/browse/RF-7879
> Project: RichFaces
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Components: component-tables
> Reporter: Nick Belaevski
> Assignee: Nick Belaevski
> Fix For: 4.0.0.BETA1
>
>
--
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