hoscanoa / struts2-bootstrap

Automatically exported from code.google.com/p/struts2-bootstrap
0 stars 0 forks source link

Double validation message on radio component #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Include a struts radio component on a form, add a field validator of type 
'required' for this radio component in {action}-validation.xml file.
2. Submit the form when no radio button from the group is selected.

What is the expected output? What do you see instead?

Expected: One validation message below or on the right of the control, like for 
other form controls.
Instead: Two validation messages with same text- one above and one below the 
control.

What version of the product are you using? On what operating system?

struts: 2.3.4.1 or 2.3.7
bootstrap-plugin: 1.5.2

Please provide any additional information below.

'bootstrap/radiomap.ftl' adds a 'span.errorMessage' before including 
'simple/radiomap.ftl' and then includes 'bootstrap/control-footer.ftl' which 
adds another error message in 'span.help-inline' element. Both display the same 
message.

Original issue reported on code.google.com by michal...@gmail.com on 28 Nov 2012 at 1:17