Re: Ajax indicator turning off

2009-07-28 Thread John Patterson



paolo di tommaso wrote:
 
 Yep, intercept the ajax call and inc/dec a counter
 
 -- paolo
 

Although I could correct the indicator behaviour in all my own AJAX
components, it would probably make more sense to incorporate it into wickets
default AJAX behaviour.  If people think it makes sense I can supply a
patch.

John
-- 
View this message in context: 
http://www.nabble.com/Ajax-indicator-turning-off-tp24655744p24693787.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Ajax indicator turning off

2009-07-28 Thread Erik van Oosten

This seems like something that warrants a new Jira issue.

Regards,
Erik.



John Patterson wrote:
 
 
 
 paolo di tommaso wrote:
 
 Yep, intercept the ajax call and inc/dec a counter
 
 -- paolo
 
 
 Although I could correct the indicator behaviour in all my own AJAX
 components, it would probably make more sense to incorporate it into
 wickets default AJAX behaviour.  If people think it makes sense I can
 supply a patch.
 
 John
 

-- 
View this message in context: 
http://www.nabble.com/Ajax-indicator-turning-off-tp24655744p24694924.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Ajax indicator turning off

2009-07-28 Thread John Patterson



Erik van Oosten wrote:
 
 This seems like something that warrants a new Jira issue.
 
 Regards,
 Erik.
 

Patch submitted https://issues.apache.org/jira/browse/WICKET-2401


-- 
View this message in context: 
http://www.nabble.com/Ajax-indicator-turning-off-tp24655744p24697620.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Ajax indicator turning off

2009-07-26 Thread Paolo Di Tommaso
Yep, intercept the ajax call and inc/dec a counter

-- paolo


On Sat, Jul 25, 2009 at 10:03 AM, John Patterson jdpatter...@gmail.comwrote:

 Hi, I notice that when I have two ajax requests overlapping the indicator
 is turned off when the first one completes.

 Start AJAX request A - turns on the indicator
 Start AJAX request B
 Return AJAX request A - turns off the indicator
 Return AJAX request B

 Would a possible solution be to replace the call to wicketShow(id) with
 something like wicketIncrementShow(id) which increments a counter against
 the id and wicketDecrementHide(id) would only hide the component when the
 count got to 0?

 John.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Ajax indicator turning off

2009-07-25 Thread John Patterson
Hi, I notice that when I have two ajax requests overlapping the  
indicator is turned off when the first one completes.


Start AJAX request A - turns on the indicator
Start AJAX request B
Return AJAX request A - turns off the indicator
Return AJAX request B

Would a possible solution be to replace the call to wicketShow(id)  
with something like wicketIncrementShow(id) which increments a counter  
against the id and wicketDecrementHide(id) would only hide the  
component when the count got to 0?


John.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org