isPostBack and <p:commandButton> actionListener is not fired
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