| Author |
Problem with selectOneMenu in MyFaces 1.1.1
|
Scott Brissenden
Greenhorn
Joined: Dec 12, 2005
Posts: 1
|
|
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}"/> </h:selectOneMenu> 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?
|
 |
 |
|
|
subject: Problem with selectOneMenu in MyFaces 1.1.1
|
|
|