I'm using Primefaces 4.0 in my application. Single row selection feature is implemented for the p:datatable as shown below:
<p:dataTable id="assignmentList" var="assignment"
value="#{shortageController.allAssignments}"
rowKey="#{assignment.transportAssignment.id}"
selection="#{shortageController.selectedAssignment}"
selectionMode="single" emptyMessage="#{common['no.assignments.found.with.given.criteria']}"
rowStyleClass="#{assignment.assignmentStyleClass}">
I want the selection feature to be disabled when a particular condition is satisfied. How to do that?Is disabledSelection attribute used in primefaces 4.0.Kindly advise.