Mastering JavaServer Faces 2.2 by Anghel Leonard

Mastering JavaServer Faces 2.2 by Anghel Leonard

Author:Anghel Leonard [Leonard, Anghel]
Language: eng
Format: azw3, pdf
Publisher: Packt Publishing
Published: 2014-06-25T04:00:00+00:00


First, you need to find the form containing the radios by the ID. Afterwards, iterate through the form's children, and identify each radio by a fixed part of its ID. Check only the radio that was selected by the user, and uncheck the rest of them. Next, populate a hidden field with the value of the selected row. The ID of the selected radio and the row value are provided as arguments, as follows (in this case, the table is populated from Map):

<h:dataTable value="#{playersBean.dataHashMap.entrySet()}" var="t"> <h:column> <f:facet name="header">Select</f:facet> <h:selectOneRadio id="radiosId" onclick="deselectRadios(this.id, '#{t.key}');"> <f:selectItem itemValue="null"/> </h:selectOneRadio> </h:column> ...



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.