4 Replies Latest reply: Oct 31, 2012 3:40 PM by gimbal2 RSS

    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;"/>
      </p:commandLink>



      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