A more elegant approach that avoids the need to submit and re-render the entire page is to do an AJAX request. That can be done in a number of ways, including:
3. Using the JSF2 AJAX support features
4. Using third-party JSF AJAX support packages such as RichFaces or IceFaces.
Customer surveys are for companies who didn't pay proper attention to begin with.
subject: passing java-script value to java-bean-property