You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Vinod Singh <Vi...@rmsi.com> on 2005/03/17 08:14:43 UTC

does not write value attribute of option tag

Hi All,

I am using f:selectItems inside h:selectOneMenu and passing it a
List<SelectItem>
In the SelectItem constructor I am passing both of the value and label like
below-
list.add(new SelectItem("value", "label"));

But the html code generated by myfaces does not contain value attribute of
the option tag. It generates option tag as given below.

<option>label</option>

The JSF code
-----------------------
<h:selectOneMenu id="client" value="#{Group.client}" styleClass="
selectOneMenu"
                  readonly="true" converter="Client">
   <f:selectItems value="#{utils.clientIDs}" />
</h:selectOneMenu>

Can anybody tell me where I am wrong.

Thanks,

Vinod