Hi:
i have a project with facelets and rich-faces and have a situation with a a4j:jsFunction call. I will describe a little further:
i have a template:
<html xmlsns="......"> <a4j:form> <ui:insert name="body">...</ui:insert> </a4j:form> </html>
<html xmlsns="......"> <ui:composition template="template.xhtml"> <ui:define name="body"> <a4j:region id="xRegion"> <a4j:jsFunction id="xFunction" name="loadFunction" actionListener="#{xController.xActionListener}" /> <script type="text/javascript"> loadFunction(); </script> </a4j:region> </ui:define> </ui:composition> </html>
<h:outputLink value="/someUrl"> <h:outputText value="link text"/> <a4j:support event="onclick" actionListener="#{xController.xActionListener}" /> </h:outputLink>