title: Set bean property from jsf page using javascript variable
body: <p>i am using icefaces 3, and there's a bug in some components in binding it to a bean property, so i am trying to do that manually, so i was wondering about the best way to set bean property from jsf page manually, using a javascript variable.</p>
  
  <p>i want to do something like:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
            //&lt;![CDATA[    
  
          function setPopupValues() {
  
              var onSuccess = document.getElementById('myForm:onSuccess_Sel');
              #{myBean.onSuccessPage}=onSuccess.value;
          }
  
             //]]&gt;     
         &lt;/script&gt;
  
  &lt;h:commandButton  value="Save" action="#{myBean.save}" onclick="setPopupValues();"&gt;&lt;/h:commandButton&gt;
  </code></pre>