I want to populate h:selectOneMenu using folder names I retrieve from SharePoint. I access SP using Javascipt SP API via Web service and it is working fine (see attached sample HTML file and JS library).
I am not sure though, if it would work with h:selectOneMenu the same as with simple HTML "select" tags.
var selectID = document.getElementById(select_id);
selectID.options[selectID.length] = new Option(filename, filename);
Could somebody confirm that it is possible to use similar logic with h:selectOneMenu?