I want to execute javascript function after bean actionListener.I am using JSF 1.2, richfaces 3.3.In my case I want to display a chart after finishing bean's method.My table tab
is filling but the javascript function didn't work. This is my attempt :
<h:form>
<h:commandButton value="Click" actionListener="#{bean.monActionListener}" reRender="tab">
<a4j:support event="onClick" oncomplete="show()" />
</h:commandButton>
<h:form>
<h:form id="sortie">
<rich:dataTable id="tab" rendered="#{not empty bean.listSortie}"
value="#{bean.listSortie}" var="raison">
<h:column headerClass="headerleftfacet">
<h:outputText value="#{raison[0]}">
</h:outputText>
</h:column>
<h:column headerClass="headermiddlefacet">
<h:outputText value="#{raison[1]}" >
</h:outputText>
</h:column>
</rich:dataTable>
Copyright Notice:Content Author:「mass_develop」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/42976811/calling-javascript-function-after-finishing-bean-method