This content has been marked as final.
Show 2 replies
-
1. Re: Seam 2.3 + a4j:ajax + pages.xml
ibenjes Jun 4, 2013 9:32 AM (in response to javacoryd)If I understand you correctly you only want it called when the page is loaded for the first time but not on every ajax request, correct?
In this case you use
{code}
<action execute="#{somePageAction.init}" on-postback="false" />
{code}
But that was already introduced a while back. Back in Seam 2.0 you had to do somthing like
{code}
if="not facesContext.renderKit.responseStateManager.isPostback(facesContext)
{code}
-
2. Re: Seam 2.3 + a4j:ajax + pages.xml
javacoryd Jun 4, 2013 2:30 PM (in response to ibenjes)Thanks for the response. Yes, this is exactly what I was referring to.
Yea, this is weird because our current app in production is based on Seam 2.1.1 GA and the "init" method doesn't get called on any of our <a4j:... Ajax requests.
Cory.