Project Documentation
Foundation

Description

Enhancement for a data-table to select one Row with a radio button. The row-index is stored in the value-binding.

Screen Shot

selectOneRow

API

component-family org.apache.myfaces.SelectOneRow
renderer-type org.apache.myfaces.SelectOneRow
component-class org.apache.myfaces.custom.selectOneRow.SelectOneRow
renderer-class org.apache.myfaces.custom.selectOneRow.SelectOneRowRenderer
tag-class org.apache.myfaces.custom.selectOneRow.SelectOneRowTag

Usage

            	<t:dataTable ...>
            	...
			<h:column>
			...
			       <s:selectOneRow  groupName="selection" id="hugo" 
						value="#{selectOneRowList.selectedRowIndex}"
						onchange="submit();" immediate="true"
						valueChangeListener="#{selectOneRowList.processRowSelection}"/>            	
			</h:column>
		...
		</t:dataTable>
            

Instructions

id - defines the id of the component.
groupName - defines the name of the radio-button-group to use. It is required.

Additional Information

see tomahawk/selectOneRow.jsf for an example.