-
1. Re: a4j popup
sergeysmirnov Jun 26, 2007 5:48 PM (in response to grimholtz)a4j:commandButton has onclick and oncomplete javascript hookups you can use to execute javascript before Ajax Request is sent or after the Ajax Response is received. You do not have to use something more (like a4j:jsFunction) here.
You can activate a4j:poll component from a4j:commandButton 'reRender' that will send periodical requests in order to update your indicator .
a4j:jsFunction might be useful if you already have some javascript code and want to utilize it in the new version of your old application. a4j:jsFunction is similar to a4j:commandButton, but activated from the javascript code. It allows to invoke some server side functionality and use the returned data in the javascript function invoked from 'oncomplete'
To see how jsFunction works on practice, look at a4j-jsFunction example from here: http://labs.jboss.com/jbossajax4jsf/demo/index.html -