Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

javascript window.open in adf

709631Jun 30 2009 — edited Jul 1 2009
i have tried to use window.open(url, winName) to open a window in ADF,
i set the same winName but when i call the window.open method every time,
it always open a new window.
the code is blow:

A.jspx
...
<script>
function openWin() {
var win;
win = window.open("./B.jspx", "sampleWindow");
}
</script>
...
<af:commandButton text="open B">
<af:clientListener method="openWin" type="click"/>
</af:commandButton>

when i click the button first time, it open a new window, keep the window opening and click the button again,
it open a new window too.

anybody can help me?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 29 2009
Added on Jun 30 2009
3 comments
3,195 views