users@woodstock.java.net

Re: how does postReplace attribute for AjaxTransaction work?

From: Dan Labrecque <Dan.Labrecque_at_Sun.COM>
Date: Tue, 18 Mar 2008 16:09:53 -0500

The best place to ask DynaFaces.fireAjaxTransaction questions is on the
users_at_jsf-extensions.dev.java.net alias.

    https://jsf-extensions.dev.java.net

Dan

autozoom wrote:
> In my code, the postreplace function has this signature:
>
> function checkWrongFields(element, markup, closure)
>
> but when it gets called, element is always null
>
>
> autozoom wrote:
>
>> I already went through this sample app but unfortunately it uses old
>> components (<ui:> instead of <webuijsf:>) so I am not sure whether
>> postreplace() shows a different behaviour with newer ones or not
>>
>>
>> mbohm wrote:
>>
>>> 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.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
>>> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>>>
>>>
>>>
>>>
>>
>
>