This content has been marked as final.
Show 2 replies
-
1. Re: <a4j:jsFunction>question
sergeysmirnov Aug 23, 2008 11:59 AM (in response to lee64)First of, you need to define a name attribute. You cannot invoke function if it has no name.
Then you can invoke jsFunction as any other javascript function on the page by its name.<body onload="foo()"> .... <a4j:form> <a4j:jsFunction id="disSession" name="foo" action="#{user.logoutAction}"/> </a4j:form>
-
2. Re: <a4j:jsFunction>question
lee64 Aug 24, 2008 1:29 AM (in response to lee64)thanks a lot! It works.
When close a IE tab(onunload JS event) invoke the logoutAction of Mbean.