[ http://issues.apache.org/jira/browse/MYFACES-91?page=comments#action_58139 ] sean schofield commented on MYFACES-91: ---------------------------------------
I have an idea for how I would implement this. I propose adding a second attribute called "forceIdIndex". This would basically be a companion attribute to forceId. By default this value would be true but the user would have the option to specify false. If the user chooses false, then there is no '[n]' appeneded to the id (where n is the row index number.) This would allow you to literally force the exact id, even when the component is in a dataTable. Most times, users will not specify this property and accept the default value (which I think is generally superior.) But in those rare cases (like radio buttons in a table) where you need the exact id, this solution will work. I'll provide a patch shortly if I hear no objections. > Need standalone radio button tag > -------------------------------- > > Key: MYFACES-91 > URL: http://issues.apache.org/jira/browse/MYFACES-91 > Project: MyFaces > Type: New Feature > Reporter: Robert Breidecker > > It would be nice to have a standalone radio button that I could add per row > on a data table. One requirement would be that the name that is generated > would need to be the same for each radio button, so that they can work > together. If I try to use a selectOneRadioButton component, the name > generated contains the row number in it which breaks the readi button. This > new tag should also only generate an html:input element instead of an entire > table as is generated by selectOneRadioButton. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
