This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

a4j:support attribute evaulation  RSS feed

 
Ahmed Basheer
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have question about the ordering of the evailation of JSF expressions in a4j:support. e.g

<a4j:support oncomplete="openNewWindow('#{myBean.URL}',
event="onclick" actionListener="#{myBean.setContextURL}" />

In the a4j:support above I expect actionListener/setContextURL to be called first before "{myBean.URL}" is evaulated but it doesn't happen that way. It evaulates "{myBean.URL}" first and then calls action listener and finally opens the window. [openNewWindow is a java script that opens a window with the URL"]. Basically my intention here is that setContextURL will set the URL and myBean.URL will get the newly set value and opens the window with newly set URL.

Any insights. I tried putting immediate="true" doesn't make any difference.

Help Appreciated.
-Basheer
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!