title: js function call with parameter value from <p:commandButton>
body: <p>I have a code like:</p>
  
  <pre><code>&lt;p:commandButton type="submit" value="Select User" onclick="showGrpMemberSearchPageCalenderLeave(#{groupname})"/&gt;
  </code></pre>
  
  <p>Here I have set the value of <code>groupname</code> like:</p>
  
  <pre><code>&lt;c:set var="groupname" value="#{session.getAttribute('USER_GROUP_NAME')}"/&gt;
  </code></pre>
  
  <p>If I print this value <code>#{session.getAttribute('USER_GROUP_NAME')}</code> it gives the correct value. but the java script function that I want to call <code>showGrpMemberSearchPageCalenderLeave(#{groupname})</code> is not invoked.</p>
  
  <p>The function is:</p>
  
  <pre><code>function showGrpMemberSearchPageCalenderLeave(groupName){
  var x= (screen.width-530)/2;
  var y= (screen.height-450)/2;
  window.open('./SearchGroupMembersLeaveCalander.xhtml?groupName='+groupName,'mywindow','resizable=no,toolbar=no,scrollbars=yes,height=450,width=530,top='+y+',left='+x);
  return false;
  }
  </code></pre>
  
  <p>this actually opens a popup. when I did not have the parameter value, the popup opened fine. Please help!</p>