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

[1170 byte] By [jrthor2a] at [2007-10-3 1:48:46]
# 1
Hi,You must have be using JSF v 1.0 or 1.1, I believe it has been fixed in JSF v1.2. so just get the newer version and give it to try.Thanks,Adnan Durrani
Khan_babaa at 2007-7-14 18:47:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
This should be fixed in 1.1_02 as well. You can download that release from https://javaserverfaces.dev.java.net.
rlubkea at 2007-7-14 18:47:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...