Could someone please help me on this ?
May be you will suggest other gallery lib that works fine with RF 3.3.3 and JSF2?
Thanks a lot. I will try it.
As Nick suggested, please try lightbox component from RF sandbox.
Using jQueryPlugin component is aware of context so you should use it like this:
<sandbox:jQueryPlugin src="/view/js/jquery.lightbox-0.5.js"/> <rich:jQuery selector="#gallery a" query="lightBox()"/>