Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

radioButton checked not rendered correctly #17

Open
JohnSchneider opened this issue Oct 11, 2016 · 2 comments
Open

radioButton checked not rendered correctly #17

JohnSchneider opened this issue Oct 11, 2016 · 2 comments

Comments

@JohnSchneider
Copy link

For radio button items in the group which are not selected checked="" is added. Browsers including FireFox, Chrome and IE interpret this to mean that that item is selected, and the result is always that the last item in the list shows as being selected. Instead, for those items which are not selected, no checked attribute should be added to the tag at all.

@JohnSchneider
Copy link
Author

Sorry, I don't have time to fork the project and submit changes at this time, but it seems like an easy fix.

In RadioButtonRenderer.java, change line 69 to:
if selectItem.getValue().equals(radioButton.getValue()) {
writer.writeAttribute("checked", "checked" , null);
}

@samuaz
Copy link

samuaz commented Nov 30, 2016

sorry, do you know how fix this issue?
#18

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants