• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with selectOneMenu in MyFaces 1.1.1

Scott Brissenden
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to upgrade my app to use MyFaces 1.1.1.

A selectOneMenu that I have been using successfully in MyFaces 1.0.9 is now broken. Whenever I try to submit my form I get the error "Value is not a valid option"

The code looks legal to me and is as follows:

<h:selectOneMenu id="prioritySrc" value="#{taskList.priority}">
<f:selectItems value="#{taskForm.priorityItems}"/>

The backing bean code is:

private static SelectItem[] priorityItems = {
new SelectItem(new Integer(1), "High"),
new SelectItem(new Integer(2), "Medium"),
new SelectItem(new Integer(3), "Low"),

public SelectItem[] getPriorityItems() {
return priorityItems;

Does anyone know what the error message means or if I am doing something obviously wrong?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic