I need to set a Bean value with one javascript return value. Something like:
<script type="text/javascript"> function getUserId(){ return 4; } </script> <h:inputText name="lala" value="getUserId()"/>
When I click a command button, and then hit the browser back button to the form and click it again, it submits a second time without throwing the proper exception... Even stranger, ...
I need to do something like this:
<a4j:support even="onclick" action="#{myBean.myProperty = null}"/>