h:selectOneMenu & xhtml
I have a dropdown list defined as:
<h:selectOneMenu id="menuMiles" value="20" styleClass="inputFixed" title="#{msg.Store_Find}">
<f:selectItem itemValue="5" itemLabel="5" />
<f:selectItem itemValue="10" itemLabel="10" />
<f:selectItem itemValue="20" itemLabel="20" />
<f:selectItem itemValue="50" itemLabel="50" />
<f:selectItem itemValue="100" itemLabel="100" />
</h:selectOneMenu>
Using the value attribute, it selects the 20 miles as the default value, but when you validate the code for xhtml compatibility, it fails because the code generated for this menu value is: <option value="20" selected>20</option>, but it should have selected="selected" to pass validation. Is this fixable on my end?
Thanks

