Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

isPostBack and <p:commandButton> actionListener is not fired

Amr KhaledOct 29 2012 — edited Oct 31 2012
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 28 2012
Added on Oct 29 2012
4 comments
396 views