This content has been marked as final.
Show 5 replies
-
1. Re: a4j:mediaOutput - cacheable = true not working as expect
sergeysmirnov Jan 19, 2008 7:44 PM (in response to milli)mediaOutput uses value as a key for cache. As soon as you have a static value, the createContent should not be invoked.
-
2. Re: a4j:mediaOutput - cacheable = true not working as expect
milli Jan 19, 2008 8:35 PM (in response to milli)"SergeySmirnov" wrote:
mediaOutput uses value as a key for cache. As soon as you have a static value, the createContent should not be invoked.
In the above code, it invokes the createContent method and the string value is passed in Object variable. So you mean to say that is not supposed to happen?
I tried passing the value in String variable or in my own object. But the behaviour is the same. In all three case, once I have cacheable="true", it does not render the image at all. I tried the latest version(3.1.3) of richfaces as well. Also tried turning on enable_cache on ajax4jsf filter as well. Nothing fixed the problem.
Is there any other way to cache images? I would appreciate your help. -
3. Re: a4j:mediaOutput - cacheable = true not working as expect
sergeysmirnov Jan 19, 2008 8:40 PM (in response to milli)If you need only to show the picture, may be rich:paint2D will be more simple. See http://livedemo.exadel.com/richfaces-demo/richfaces/paint2D.jsf?c=paint2d
-
4. Re: a4j:mediaOutput - cacheable = true not working as expect
milli Jan 19, 2008 8:50 PM (in response to milli)"SergeySmirnov" wrote:
If you need only to show the picture, may be rich:paint2D will be more simple. See http://livedemo.exadel.com/richfaces-demo/richfaces/paint2D.jsf?c=paint2d
Thanks for your immediate response. Eventually I want to use mediaoutput for video and audio as well. But I will try paint2D for images first to see if it would fix my problem.
Could you point me to any example how to use Graphics2D to read an image file? I have never used Graphics2D and related media API's. -
5. Re: a4j:mediaOutput - cacheable = true not working as expect
milli Jan 19, 2008 9:22 PM (in response to milli)"milli" wrote:
"SergeySmirnov" wrote:
If you need only to show the picture, may be rich:paint2D will be more simple. See http://livedemo.exadel.com/richfaces-demo/richfaces/paint2D.jsf?c=paint2d
Thanks for your immediate response. Eventually I want to use mediaoutput for video and audio as well. But I will try paint2D for images first to see if it would fix my problem.
Could you point me to any example how to use Graphics2D to read an image file? I have never used Graphics2D and related media API's.
Never mind, I figured it out.