p:graphicImage not working with p:ajax

UI Components for JSF
Post Reply
imcewan
Posts: 1
Joined: 23 Aug 2011, 14:38

26 Sep 2011, 17:37

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?

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

26 Sep 2011, 19:08

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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: brianfeidt and 30 guests