Win a copy of Murach's Python Programming this week in the Jython/Python 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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!