You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Robert Breidecker (JIRA)" <in...@incubator.apache.org> on 2005/01/27 00:20:18 UTC
[jira] Created: (MYFACES-91) Need standalone radio button tag
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
[jira] Commented: (MYFACES-91) Need standalone radio button tag
Posted by "Robert Breidecker (JIRA)" <in...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-91?page=comments#action_58175 ]
Robert Breidecker commented on MYFACES-91:
------------------------------------------
I like the forceIdIndex attribute. I think that would work along with selectOneRadio. However, selectOneRadio also generates a complete table. A tag such as selectBooleanRadio would be nice that simply generated the input control. It could work similar to selectBooleanCheckbox.
> 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
[jira] Commented: (MYFACES-91) Need standalone radio button tag
Posted by "sean schofield (JIRA)" <in...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-91?page=comments#action_58122 ]
sean schofield commented on MYFACES-91:
---------------------------------------
I'll take a crack at implementing this feature. Even though I don't generally have radio buttons in a table, there should be no reason why you can't have them. Yet another reason for JSF to leave the clientId alone!
> 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
[jira] Commented: (MYFACES-91) Need standalone radio button tag
Posted by "sean schofield (JIRA)" <in...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-91?page=comments#action_58182 ]
sean schofield commented on MYFACES-91:
---------------------------------------
I didn't realize selectOneRadio created a table for you. I would agree that it would be nice to have a version of the radio button that you could include in your own table as you are suggesting. Let me think about how best to accomplish that.
I will try to add the forceIdIndex property tonight. Then I will turn my attention to your excellent suggestion.
> 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
[jira] Commented: (MYFACES-91) Need standalone radio button tag
Posted by "Robert Breidecker (JIRA)" <in...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-91?page=comments#action_58244 ]
Robert Breidecker commented on MYFACES-91:
------------------------------------------
Here is a related discussion from the Sun JSF forum.
http://forum.java.sun.com/thread.jspa?threadID=548253&messageID=2675929
> 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
[jira] Commented: (MYFACES-91) Need standalone radio button tag
Posted by "sean schofield (JIRA)" <in...@incubator.apache.org>.
[ 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
[jira] Updated: (MYFACES-91) Need standalone radio button tag
Posted by "sean schofield (JIRA)" <in...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-91?page=history ]
sean schofield updated MYFACES-91:
----------------------------------
Attachment: forceIdIndex.patch
Added patch for forceIdIndex property.
> 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
> Attachments: forceIdIndex.patch
>
> 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