a4j « Seam « JSF Q&A





1. How to access javascript value in a4j    stackoverflow.com

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()"/>
Thanks

2. Seam:token tag not being respected    stackoverflow.com

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, ...

3. Basic JSF: is it possible to SET a property value in EL?    stackoverflow.com

I need to do something like this:

<a4j:support even="onclick" action="#{myBean.myProperty = null}"/>
I would like to know if this is possible and which would be the proper syntax if so.