Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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!

Open new window in JSF

805915Jan 15 2010 — edited Jan 15 2010
Hi All,
I want to open a new window in JSF. So i used in javascript, window.open method. its working. but prior to opening that window, i need to set some bean variables from database.

so
<h:commandlink onclick = "OpenWindow()"  value="Load" action=#{bean.doSome} />     
  
//javascript   
function OpenWindow()   
{   
   window.open ('<%= request.contextpath> + stview/start.do', 'title', height=400,width = 400 );   
} 
Its opening a new window.. but i need to call some bean method to set the variables. after calling openwindow method, its not going into bean method
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 12 2010
Added on Jan 15 2010
6 comments
455 views