This content has been marked as final.
Show 2 replies
-
1. Re: mediaOutput ajax rendered do not work
ilya_shaikovsky Sep 8, 2008 8:18 AM (in response to lee64)Yes that because value doesn't gets changed - so browser gets resource from cache.
in our application we've added next code to workaround this:
demosite fileUpload example:
1) page code<a4j:mediaOutput element="img" mimeType="#{file.mime}" createContent="#{fileUploadBean.paint}" value="#{row}" style="width:100px; height:100px;" cacheable="false"> <f:param value="#{fileUploadBean.timeStamp}" name="time"/> </a4j:mediaOutput>
Java bean code for timeStamp:public long getTimeStamp(){ return System.currentTimeMillis(); }
In this case - should works fine. -
2. Re: mediaOutput ajax rendered do not work
lee64 Sep 8, 2008 9:46 AM (in response to lee64)Thank you! Now it works.
Thanks again for your timely and efficient help!