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