users@woodstock.java.net

Re: Asynchronously submit and refresh. How to?

From: Stefan Bley <stefan.bley_at_saxsys.de>
Date: Mon, 19 May 2008 23:29:39 -0700 (PDT)

Hi Arnaud,

thanks for your reply.

I tried as you suggested. The event is triggered, but the values from cal1
and txt1 are not stored in the Bean's properties. I verify this through a
logging call in the event handler. :confused:

Furthermore, how could I make refresh 2 components, say dd2 and dd3?

Cheers, Stevy


Arnaud Brand wrote:
>
> Instead using
>
> dd1.submit("form1:cal1,form1:txt1");
> dd2.refresh("form1:dd1");
> I would rather try
> dd2.refresh("form1:dd1,form1:cal1,form1:txt1");
> This should submit dd1, cal1 and txt1, trigger your event listener and
> refresh dd2.
>
> 2 reasons for that :
> - if your bean "Bean" is scoped at the request level your second call
> (dd2.refresh) will have "lost" the values from your first call
> (dd1.submit).
> - it might be that dd2.refresh is called before dd1.submit actually
> returns (because submit is asynchronous), so may be your dd2 values are
> set in the bean after having already been read by dd2.refresh.
>
> I hope that helps. Have a nice evening,
> Arnaud
>

-- 
View this message in context: http://www.nabble.com/Asynchronously-submit-and-refresh.-How-to--tp17316746p17334078.html
Sent from the Project Woodstock - Users mailing list archive at Nabble.com.