Hi,

I'm using MyFaces 1.1.6 and Tomahawk 1.1.9.  I have this selectOneMenu ...

                                <h:selectOneMenu required="true"
validator="#{historicalTour.validateTime}" styleClass="hourMenu"
id="historicalTour1st_Preference_Hour"
value="#{historicalTour.prefs[0].time}">
                                <f:selectItems 
value="#{historicalTour.timePrefItems}"/>
                                </h:selectOneMenu>

When another text field on the page changes value, I would like to
re-populate the select menu with new options.  I have discovered I just
can't simply do that with Javascript, because when I submit the form I get a 

"Value is not a valid option"

error.  Any ideas how I can change my select menu options and keep JSF
happy?

Thanks, - Dave
-- 
View this message in context: 
http://old.nabble.com/How-do-I-change-the-value-of-a-selectOneMenu-on-the-fly-tp26819601p26819601.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to