Page 1 of 1

1st time req to StaticAssetViewController for image render

Posted: Wed Sep 23, 2015 1:07 am
by henry
Hi,
I am trying to understand how image is rendering on the admin CMS category-> media->Select/upload image . While analyzing the code i have found when the very first time we click the Select/upload image button broadleaf will first render the name on the model,then it will hit the StaticAssetViewController for getting the image from physical location and then it will delegate the request to StaticAssetView for writing the image bytes in response output stream.

My question is after the populating the name in media model , how StaticAssetViewController is called again and again for each image very first time.
How this process is happening? Is it happening through ajax call on looping or spring is taking care that?
If it happens through ajax which JS is doing this?