This discussion is archived
4 Replies Latest reply: Oct 31, 2012 1:40 PM by gimbal2 RSS

isPostBack and <p:commandButton> actionListener is not fired

Amr Khaled Newbie
Currently Being Moderated
Hi All,

I'm using <p:commandLink> as below

<p:commandLink actionListener="#{homebean.setLocationId}" oncomplete="">
<f:attribute name="locationId" value="#{store.locationId}"/>
<p:graphicImage url="${store.image}" style="width: 170px;height:170px;"/>

and everything work fine, but when i use FacesContext.getCurrentInstance().isPostback() in homeBean postConstruct method, commanLink actionListener doesn't fire.
i don't know why? any suggestion how to fix this ?

thanks in advance


  • Correct Answers - 10 points
  • Helpful Answers - 5 points