Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a4j:support attribute evaulation

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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic