[Wicket-user] Image with AjaxSelfUpdatingTimerBehavior

2007-07-27 Thread Gohan

I wonder how I rerender an Image using the AjaxSelfUpdatingTimerBehavior? 

I've created an image like:
Image image = new Image(imgId, new DynamicImageResource() {
 @Override
 protected byte[] getImageData() {
  // Get the byte data
 }
});
image.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(30)));
image.setOutputMarkupId(true);

The ajax debug window says that a request is sent every 30th second but the
getImageData() is never called again. I've probably misunderstood something
here, so could someone please enlighten me on how this could be achieved?

Thanks

-- 
View this message in context: 
http://www.nabble.com/Image-with-AjaxSelfUpdatingTimerBehavior-tf4157679.html#a11828847
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: users-subscribe at wicket.apache.org and follow the 
instructions.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Image with AjaxSelfUpdatingTimerBehavior

2007-07-27 Thread Igor Vaynberg
the url never changes, so the browser uses its cache

use NonCachingImage

-igor


On 7/27/07, Gohan [EMAIL PROTECTED] wrote:


 I wonder how I rerender an Image using the AjaxSelfUpdatingTimerBehavior?

 I've created an image like:
 Image image = new Image(imgId, new DynamicImageResource() {
  @Override
  protected byte[] getImageData() {
   // Get the byte data
  }
 });
 image.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(30)));
 image.setOutputMarkupId(true);

 The ajax debug window says that a request is sent every 30th second but
 the
 getImageData() is never called again. I've probably misunderstood
 something
 here, so could someone please enlighten me on how this could be achieved?

 Thanks

 --
 View this message in context:
 http://www.nabble.com/Image-with-AjaxSelfUpdatingTimerBehavior-tf4157679.html#a11828847
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now   http://get.splunk.com/
 ___
 IMPORTANT NOTICE:

 This mailing list is shutting down. Please subscribe to the Apache Wicket
 user list. Send a message to: users-subscribe at wicket.apache.org and
 follow the instructions.
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: users-subscribe at wicket.apache.org and follow the 
instructions.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user