Calling javascript function after finishing bean method
NickName:mass_develop Ask DateTime:2017-03-23T21:00:35

Calling javascript function after finishing bean method

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 tabis 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

More about “Calling javascript function after finishing bean method” related questions

Calling javascript function after finishing bean method

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 tabis filling but the

Show Detail

Executing javascript function after finishing method bean (<a4j:support>)

This is my first question. In my project, I'm using JSF 1.2 and richfaces 3.3. I want to execute a javascript function after finishing executing a bean's method. The method of the bean worked very ...

Show Detail

interrupt a Bean-method by calling a javaScript function?

What I want to do: I want to call a javaScript function from a Bean-function Then I want to pause my Bean-function Then the JavaScript function do it's own thing and returns stuff back to the bean...

Show Detail

onbeforeunload javascript calling backing bean method

I am working on a website using jsf and getting benefit of the the features of primefaces, while I am managing the idea of saving changes onbeforeunload I'd face a problem. I am using a javascript...

Show Detail

jsf calling bean method from javascript using p:remoteCommand

I cant trigger a bean method from my javascript. the myRemote() should be calling the primefaces remoteCommand in the xhtml which should be triggering a call to test1() in the bean, but this is NE...

Show Detail

calling a serverside method in a javascript function?

Here i am calling a javascript function on a button click and i need to call the server side method inside the javascript function after finishing its execution. Javascript Function function

Show Detail

How to call method after finishing first transaction in spring mvc

In my Spring mvc application, calling following method , when click 'Save' button in jsp page. @RequestMapping(value = "/add", method = RequestMethod.POST) public String addUser(@ModelAttribute("u...

Show Detail

How to execute javascript function after bean method is finished in JSF

I want to call javascript function after related action is fired and related bean method is finished. I see something related in the question - Proccess onclick function after ajax call &lt;f:ajax&...

Show Detail

Oracle MAF : (Signature Capture) Calling a javascript function from Managed Bean

I'm following this tutorial to get signature capture functionality in Oracle MAF application. When I tried with simple POC as explained in the tutorial, I made it work with out any issues. Same lo...

Show Detail

How to call listener or backing bean method after completing a javascript call in jsf?

According to my scenario, Need to invoke the javascript first. After the javascript call two hidden values will be updated. With the updated hidden values , have to call Bean method. In this scenar...

Show Detail