title: Passing value from javascript prompt to managed bean
body: <p>Is it possible to pass a value from a popup prompt to a CDI managed bean somehow like this:</p>
  
  <pre><code>h:commandButton image="/resources/images/editButton.png" onclick='mytext = prompt("Enter text: ")' action='#{myBean.foo(mytext)}'
  </code></pre>
  
  <p>The prompt opens, the foo method is called, but how do I pass the mytext value?</p>