This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes a4j:support  attribute evaulation Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "a4j:support  attribute evaulation" Watch "a4j:support  attribute evaulation" New topic
Author

a4j:support attribute evaulation

Ahmed Basheer
Ranch Hand

Joined: Apr 15, 2004
Posts: 77
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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: a4j:support attribute evaulation
 
Similar Threads
Creating and opening a window if the button is clicked in an applet
session issues with Ctrl-N
selectOneMenu VCL not firing
open new browser window on click of button.
opening new browser window from applet