posted 17 years ago
Hello All
I am using h:selectOneMenu and f:selectItem to display a drop down element.In the f:selectItem i am need a element to be preselected how we have do this
<h:selectOneMenu id="xyz" value="#{bean.value}">
<f:selectItems value="#{bean.errMapList}"/> </h:selectOneMenu>
In the list i am adding a selectItem
errMapList.add(new SelectItem(element.getId()+"",element.getName()));
Now i want a value to be selected in the drop down box like selected in html
Regards
Sathish