I need to use captcha in my application, how can I use a4j:mediaOutput for captcha? I tried some simple examples but the problem is the image refresh when ajax validation fails even if I added <a4j:support> or <rich:ajaxValidator>. My example is inspired from the demo (only the paint method different). So any help please? thanks in advance.