4 Replies Latest reply on Oct 31, 2012 8:40 PM by gimbal2

    isPostBack and <p:commandButton> actionListener is not fired

    Amr Khaled
      Hi All,

      I'm using <p:commandLink> as below

      <p:commandLink actionListener="#{homebean.setLocationId}" oncomplete="merchantRegistration.show()">
      <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