I'm using jsf 2.0 ,richfaces 4.0 to implement my application. I used some times jQuery & javascript function for show & hide. But when I generate tags in xhtml page then it wont allow me.
Foe e.g:
I want to append image for rich:autocomplete component of jsf for each serach result. So I write the code like this:
<script type="text/javascript">
function addPhotoPage(){
var allDiv=$('#frmContent\\:txtPatientSearchItems').find('div');
$.each(allDiv,function(cnt,data){
$(this).append("<img src="./resources/images/photo.png">");
});
}
</script>
this code written in xhtml page.
JSF strictly checks all the tags so it wont allow me to append img tag to result of search.
Thank you.