I am generating the source for af:image
on runtime. Sometimes, when a source path is generated at runtime, there is no image at that source path. So in that case shortDesc
field of that image is displayed instead. Is there a way to catch the exception (if thrown any) in that case and a default image can be shown instead.
I faced a similar problem before and one solution I could come up with is providing a CSS background fallback, that way you can have default picture in case there is no image at the destination