This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
For HTML labels to work properly the IDs of the radio buttons should be unique, but when a SelectItemGroup is used to group radio buttons the ids are not unique.
The generated HTML code is pasted below, as you can see the radio button id "j_id_jsp_1265752901_2:j_id_jsp_1265752901_4:0" and "j_id_jsp_1265752901_2:j_id_jsp_1265752901_4:1" are used twice on this page, which invalidates the HTML and breaks the labels.
I'm using the most recent version of MyFaces (1.2.7), running in Tomcat 6.
Does anyone know a fix for this? I wouldn't mind having to generate an ID for all radio buttons myself, but I can't figure out how without modifying the renderer.
Thanks for your time,
subject: id of radio button not unique when SelectItemGroup is used