I am using Primefaces 3.0.M3 and I am trying to work with StreamedContent, but I can not get this simple example to work. The ajax event will not fire.
<p:graphicImage id="id2" url="CapWINIcon.ico">
<p:ajax id="id3" event="click" oncomplete="PrimeFaces.navigate('pictureDialog2')" />
</p:graphicImage>
But if i do this, the event does fire.
<h:graphicImage id="id4" url="CapWINIcon.ico">
<p:ajax id="id5" event="click" oncomplete="PrimeFaces.navigate('pictureDialog2')" />
</h:graphicImage>
So it appears the p:graphicImage doesnt allow ajax but h:graphicImage does. Known bug?
p:graphicImage not working with p:ajax
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
maybe you could try a p:commandLink with a p:graphicImage inside
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko