This content has been marked as final.
Show 5 replies
-
1. Re: a4j:mediaOutput, multiple db-connections
ilya_shaikovsky Jan 8, 2009 8:39 AM (in response to maxmustang)Yes a4j:mediaoutput requests the resources assynchronously.
-
2. Re: a4j:mediaOutput, multiple db-connections
maxmustang Jan 8, 2009 8:47 AM (in response to maxmustang)Thank you very much! Greetings from Zürich.
-
3. Re: a4j:mediaOutput, multiple db-connections
maxmustang Jan 9, 2009 7:28 AM (in response to maxmustang)"ilya_shaikovsky" wrote:
Yes a4j:mediaoutput requests the resources assynchronously.
Is Paint2DTag also assynchronously, and if not, could you think i can use this component to show an already generated image (bytearray)??.. :-) If so this would solve my problem with the connections. Thanks again for your help. -
4. Re: a4j:mediaOutput, multiple db-connections
ilya_shaikovsky Jan 9, 2009 9:51 AM (in response to maxmustang)paint2D - is the specific mediaOutput implementation. there is the only difference between the components paint2D outputs generated images, and media output outputs any binary resources (video, imgs, sounds and so on) ..
-
5. Re: a4j:mediaOutput, multiple db-connections
nbelaevski Jan 9, 2009 8:25 PM (in response to maxmustang)"maxmustang" wrote:
"ilya_shaikovsky" wrote:
Yes a4j:mediaoutput requests the resources assynchronously.
Is Paint2DTag also assynchronously, and if not, could you think i can use this component to show an already generated image (bytearray)??.. :-) If so this would solve my problem with the connections. Thanks again for your help.
paint2D/mediaOutput itself are rendered as IMG (or another one) tags with a special URI that has been created by Richfaces resource framework. These components have "data" attribute that allows you to specify a piece of information to be encoded in URI that will be available in time when resource content (e.g. image bytes) are output to the client. If you use big objects, URIs can become very big and not useful. You can cope with the problem by creating application cache and store image bytes there. In this case "data" will be cache object key that is lightweight by nature.