users@woodstock.java.net

Re: how does postReplace attribute for AjaxTransaction work?

From: Matthew Bohm <Matthew.Bohm_at_Sun.COM>
Date: Mon, 17 Mar 2008 12:27:18 -0700

autozoom wrote:
> I am again trying to use the postreplace attribute to call a custom JS
> function when the Ajax Transaction completes.
> Whatever code I put in my functions, what I get is that the UI element
> refreshed by the transaction disappears from the page
> Can we have a sample of the correct way to use postreplace?
>
Check out the Currency Trader sample application:
http://www.netbeans.org/kb/60/web/instcurrencytrader.html

When looking at the customPostReplace function in currencytrader.js,
keep in mind that useClosure is false, so the logic is fairly
straightforward.