This content has been marked as final.
Show 3 replies
-
1. Re: how to call one moethod after another
jimk1723 Jun 5, 2009 7:29 PM (in response to ashutoshdeora)It feels like there are some requirements missing here. Do you need the call to B() to not block since you're expecting it to take a while?
If not, could the solution be as simple as:
Method C(){ A(); B(); }
Other methods off the top of my head, using RichFaces...
- Add a a4j:jsFunction call to B() that updates the rich:datatable
- Have your a4j:commandButton call A() and reRender the rich:datatable
- In the onComplete for the commandButton, call the jsFunction.
Using a synchronous events,
- Call A() in the same manner as above
- Kick off a a4j:poll onclick, have it update the datatable
- Have A() raise an asynchronous event
- Have B() handle the event and update the model for the rich:datatable
-
2. Re: how to call one moethod after another
ashutoshdeora Jun 8, 2009 6:10 AM (in response to ashutoshdeora)thanks for the suggestion
i am using same kind of concept that you have suggested -
3. Re: how to call one moethod after another
lvdberg Jun 8, 2009 1:46 PM (in response to ashutoshdeora)
You could do this by defining the different actions before the navigation riles in youe X.page.xml file.